>
其他
>
C语言怎么判断一个数是否是回文数?
人气:330 ℃ 时间:2020-03-25 20:20:50
解答
#include
int main()
{
int num,temp;
int sum=0;
printf("Please input a number:");
scanf("%d",&num);
temp=num;
while(num)
{
sum = sum*10 + num%10;
num /= 10;
}
if(temp == sum)
printf("yes\n");
else
printf("no\n");
return 0;
}
推荐
C语言,判断回文数.
求下列极限lim(n→∞)3n3次方﹣2n+1/8-n3次方 麻烦写下具体过程
什么华组词
骆驼政策 什么意思
猜你喜欢
一个圆柱形的水槽里面10cm深水槽的底面积是400平方厘米将一个棱长10cm的正方体放入水中问水面上升多少cm
1分米=( )微米,1厘米=( )微米,1毫米=( )微米,1微米=( )纳米,1纳米=( )微米
形容人十分感动的成语
she toward life with optimistic attitude 这句子有错吗
as she turned around,there stood Gladys Claffern.there 在这是什么?
班级趣事多 作文 600字 快
若x∈(0,π/4),求函数y=(cosx)^2-(sinx)^2+2sinxcosx的值域
英语翻译
© 2024 79432.Com All Rights Reserved.
电脑版
|
手机版