main(i){char x[99];while(gets(x)){i=strlen(x)-1;printf("%c%.*s",*(x+i),i-1,x+1);if(i)putchar(*x);putchar(10);}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page