mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-27 02:25:37 +00:00
9 lines
196 B
C
9 lines
196 B
C
int _printdigits_call_cnt = 0;
|
|
|
|
void printdigits(int n) {
|
|
if (n == 0 && _printdigits_call_cnt != 0) return;
|
|
_printdigits_call_cnt++;
|
|
printdigits(n / 10);
|
|
printf("%d\n", n % 10);
|
|
}
|