题解 | #数字颠倒#
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
/********************** *学会利用整形除数和余数的自身特点解题 *********************? #include <stdio.h> int main() { unsigned int number, t; int i = 0, j = 0; scanf( "%d", &number ); if( number == 0 ) { printf("%d",number); } t = number; while( t >= 1 ) { printf( "%d", t % 10 ); t = t / 10; } return 0; }