C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//Takes a string and outputs reverse
int main() {
char *word=(char *)malloc(20);
fgets(word,20,stdin);
int len=strlen(word);
int x;
for(x=len;x>=0;printf("%c",*(word+x--)));
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run