当n=1时,将不再调用print函数,出来打印1
#include <stdio.h>标签:10,递归,int,学会,num,printf,print,原理 From: https://blog.51cto.com/u_15927947/6012035
void print(int n)
{
if (n > 9)
{
print(n / 10);
}
printf("%d ", n % 10);
}
int main()
{
unsigned int num = 0;
scanf("%d", &num);
print(num);
return 0;
}