题解 | #数字颠倒#
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
// #include <stdio.h> int main() { int num; scanf("%d",&num); // 防止 num = 0的情况 do { int data = num%10 + 48; printf("%c",data); num = num/10; }while (num!=0); printf("\n"); return 0; }