题解 | #牛牛逆序输出#
牛牛逆序输出
https://www.nowcoder.com/practice/d981181ce18e4cce945fdf52daf037a1
#include <stdio.h> void get_num(int n) { if (n != 0) { printf("%d", n % 10); get_num(n / 10); } } int main() { int n = 0; scanf("%d", &n); get_num(n); return 0; }