#include <stdio.h>
#include <string.h>

int main() {
    char str[50]=" ";
    int l,i ;
   fgets (str, sizeof str,stdin);
    l=strlen(str);
    for (i=l; i>=0; i--){
        printf ("%c ",str[i]);
    }
    return 0;
}

Embed on website

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