求助个问题,谢谢各位
以下是个论证数字回文的程序,为什么当我出入字母时,他就会一直出现"please input a number:"#include<stdio.h>
void main()
{long int a,a1,a2,a3,a4,rent;
do
{printf("\nplease input a number:");
scanf("%ld",&a);
}while(a<10000||a>99999);
a1=a/10000;
rent=a%10000;
a2=rent/1000;
rent=a%100;
a3=rent/10;
a4=a%10;
if((a1==a4)&&(a2==a3))
printf("\nthe number is huiwen");
else
printf("\nthe number is not huiwen");
}
希望高手的帮助,谢谢
[[it] 本帖最后由 zhouweiyong55 于 2008-4-8 00:17 编辑 [/it]]