题解 | 23年OPPO-a的翻转
23年OPPO-a的翻转
https://www.nowcoder.com/practice/dcce2d0cc8f740c29e0885df96c9d625
#include <stdio.h>
int main()
{
int a=0,b=0;
scanf("%d",&a);
int c=a;
while (c)
{
int mod=c%10;
b=b*10+mod;
c/=10;
}
printf("%d",a+b);
return 0;
}