commit
31e75df540
@ -0,0 +1,20 @@
|
||||
#include<stdio.h>
|
||||
void solve(int n) {
|
||||
int temp = n % 10;
|
||||
/*********Begin*********/
|
||||
n /= 10;
|
||||
if (n > 0) solve(n);
|
||||
/*********End**********/
|
||||
if (n)
|
||||
printf(" %d", temp);
|
||||
else
|
||||
printf("%d", temp);
|
||||
}
|
||||
int main(void)
|
||||
{
|
||||
//freopen("in.txt","r",stdin);
|
||||
int n;
|
||||
scanf("%d", &n);
|
||||
solve(n);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in new issue