输入在一行中给出一个不超过80个字符长度的、以回车结束的非空字符串。
输入样例:
在这里给出一组输入。例如:
123456
输出样例:
在这里给出相应的输出。例如:
654321
#include<stdio.h>
#include<string.h>
#define N 81
int main()
{
char a[N],i;
int m;
gets(a);
m=strlen(a);
for(i=m-1;i>=0;i--){
printf("%c",a[i]);
}
return 0;
}