1001001
具体计算C语言程序如下:
#include "string.h"
#include <conio.h>
int main(int argc, char* argv[])
{
long curInt = 1;
int counter = 0;
int result = -1;
char strBuff1[10]="";
while(counter<2000)
{
sprintf(strBuff1,"%d",curInt);
result = stricmp( strBuff1, strrev( strdup( strBuff1 ) ) );;
if( result == 0 )
{
counter++;
printf("counter = %4d , number = %d\n",counter,curInt);
//if (counter%100==0) getch();
}
curInt++;
}
getch();
return 0;
}
追问五年级看不懂!