- Author: wugenqiang
- Personal blog: https://wugenqiang.gitee.io
- Study notes: https://wugenqiang.gitee.io/cs-notes
On Recursion
Number of printouts
#include <stdio.h>
void printOut(int n){
if(n >= 10){
printOut(n / 10);
}
printf("%d", n % 10);
}
int main(){
int n, result;
scanf("%d", &n);
printOut(n);
return 0;
}