You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
302 B
20 lines
302 B
6 years ago
|
#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;
|
||
|
}
|