Algorithme qui tourne les phrases et les nombres

#include <stdio.h>
#include<string.h>
int main(void) {
  int n,m,j;
  char i,t[n],d[n];
printf("enter the first word :");
gets(t);
n=strlen(t);
   for(j=n-1;j>=0;j--){
   printf("%c",t[j]);
   }
  return 0;
}
abd elmoumaine nessah