#include<stdio.h> #include<stdlib.h> main() { char string[100]; int i=0,len; printf("请输入中文汉字:\n"); while(1) { if(string[i]=='\n')break; i++; scanf("%c",&string[i]); } printf("倒叙后的中文语句以下:"); for(len=i;len>=1;len--) {if(string[len]=='\0')continue; else if(len%2==0) {char temp; temp=string[len]; string[len]=string[len-1]; string[len-1]=temp; } printf("%c",string[len]); } printf("\n"); system("pause"); return 0; }