/*
输入一个字符串 : 01234567899876543210Press any key to continue
*/
#include <stdio.h>#include <string.h>int main() {char i,t,len,s[256];printf("输入一个字符串 : ");scanf("%s",s);len = strlen(s);for(i = 0; i < len/2; ++i) {t = s[i];s[i] = s[len - 1 - i];s[len - 1 - i] = t;}printf("%s\n",s);return 0;}