#include <stdio.h>
void print(int j)
{
if (j>9)
{
print(j/10);
}
printf("%d ", j%10);
}
int main()
{
int i;
printf("请输入数字:");
scanf_s("%d", &i);
print(i);
return 0;
}
标签:10,每位,数字,递归,int,printf,print,main From: https://blog.51cto.com/u_16336886/8352686