> 其他 >
编写一个程序,求回文数.
人气:428 ℃ 时间:2020-05-09 02:14:47
解答
int x,y,s=0;
cin>>x;
y=x;
while(x!=0)
{
s=s*10+(x%10);
x=x/10;
}
if(y==s)
cout
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版