题解 | #反向输出一个四位数#
反向输出一个四位数
https://www.nowcoder.com/practice/1f7c1d67446e4361bf4af67c08e0b8b0
#include <stdio.h> #include <string.h> int main() { int number = 0; int number2 = 0; scanf("%d", &number); for(number2 = 0;number2 < 4; number2++) { printf("%d", number%10); number/=10; } return 0; }