// Run time: 0.010
#include <stdio.h>
#include <string.h>
#define N 1000
char str[N];
int main()
{
int i;
int len;
while (true)
{
while (true)
{
if (scanf("%s", str) == EOF) return 0;
len = strlen(str);
for ( i = len-1; i >= 0; i--)
printf("%c", str[i]);
if (getchar() == '\n')
break;
putchar(' ');
}
printf("\n");
}
}
沒有留言:
張貼留言