📅  最后修改于: 2022-03-11 14:57:40.560000             🧑  作者: Mango
#include
int main()
{
int r,temp,num,sum=0;
printf("the given number: ");
scanf("%d" ,&num);
temp=num;
while(temp!=0)
{
r=temp%10;
sum=sum*10+r;
temp=temp/10;
}
printf("reverse number:%d\n",sum);
}