#include <stdio.h>
#include <string.h>
main(){
int i=0,j=0;
char str[10];
printf("\n\nInput a number (length<=9) : ");
scanf( 1);
printf("the length of the string is : %d\n", 2 );
for (i=0,j=strlen(str)-1;i<j;i++,j--){
if ( 3 )continue;
else break;
}
printf("i=%d,j=%d\n",i,j);
if ( 4 ) printf("the number is not a palindrome.");
else printf("the number is a palindrome!");
}为数字的地方要填代码!判断是否会文数如12321,14541
參考答案:1:scanf("%s",str);
2:strlen(str)
3:if(str[i]=str[j])
4:if(i!=j)