#include <stdio.h>

int main() {
    char a[20];
    int i;
    
    for (i = 0; i < 10 && scanf("%c", &a[i]) != EOF; i++);
    
    for (; i >= 0; i--) {
        printf("%c", a[i]);
    }
    
    return 0;
}

Embed on website

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