标签:++ gets printf -- print div else code nbsp
1 #include <stdio.h> 2 #include <string.h> 3 int main() 4 { 5 char s[80]; 6 int i,j; 7 printf("Please input the string:\n"); 8 gets(s); 9 j=strlen(s)-1; 10 for(i=0;i<j;i++,j--) 11 if(s[i]!=s[j]) 12 break; 13 if(i<j) 14 printf("No"); 15 else 16 printf("Yes"); 17 return 0; 18 }
标签:++ gets printf -- print div else code nbsp
原文地址:http://www.cnblogs.com/jianf/p/6248134.html