#includeint main(void){ int i,n,m; char s[10]; printf("Enter a string:"); i=0; while((s[i]=getchar())!='\n') i++; s[i]='\0'; for(n=0,m=i-1;n =m) printf("It is a plaindrome\n"); else printf("It is not aplalindrome\n"); return 0;}
本文共 382 字,大约阅读时间需要 1 分钟。
#includeint main(void){ int i,n,m; char s[10]; printf("Enter a string:"); i=0; while((s[i]=getchar())!='\n') i++; s[i]='\0'; for(n=0,m=i-1;n =m) printf("It is a plaindrome\n"); else printf("It is not aplalindrome\n"); return 0;}
转载于:https://www.cnblogs.com/shenyunwen/p/3355912.html