题解 | #数字颠倒#
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
#include <stdio.h>
//第一次直接打完无修改,一次过,纪念一下
int main() {
int n;
scanf("%d",&n);
int a;
if(n==0)
{
printf("%c",'0');
}
while(n!=0)
{
a=n%10;
printf("%d",a);
n=n/10;
}
}

