题解 | #数字颠倒#
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
#include <stdio.h> void print(int n) { printf("%d", n % 10); if(n > 9) return print(n / 10); } int main() { int n = 0; scanf("%d", &n); print(n); return 0; }
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
#include <stdio.h> void print(int n) { printf("%d", n % 10); if(n > 9) return print(n / 10); } int main() { int n = 0; scanf("%d", &n); print(n); return 0; }
相关推荐