超简单C语言填空题
一个5位数,判断它是不是回文数。即12321是回文数,个位与万位相同,十位与千位相同。程序分析:同5main(){longge,shi,qian,wan,x;scanf(...
一个5位数,判断它是不是回文数。即12321是回文数,个位与万位相同,十位与千位相同。
程序分析:同5
main( )
{
long ge,shi,qian,wan,x;
scanf("%ld",&x);
wan=_______(1)___________;
qian=_______(2)___________;
shi=x%100/10;
ge=x%10;
if _________(3)_____________ printf("this number is a huiwen\n");
else
printf("this number is not a huiwen\n");
} 展开
程序分析:同5
main( )
{
long ge,shi,qian,wan,x;
scanf("%ld",&x);
wan=_______(1)___________;
qian=_______(2)___________;
shi=x%100/10;
ge=x%10;
if _________(3)_____________ printf("this number is a huiwen\n");
else
printf("this number is not a huiwen\n");
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询