#include <stdio.h>

int main() {
    char str[100];
    int len=0;
    char tmp;
    scanf("%s",str);
    while(str[len]!=0) {
        len++;
    }
    for(int i=0; i<len/2; i++) {
         tmp = str[i];
        str[i]=str[len-1-i];
        str[len-1-i]=tmp;
    }
    printf("%s",str);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: