fork download
  1. #include <stdio.h>
  2. void hoge(int n){
  3. if(n>1){
  4. hoge(n-1);
  5. }
  6. printf("%d",n);
  7. }
  8. int main() {
  9. int n;
  10. scanf("%d",&n);
  11. hoge(n);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5288KB
stdin
3
stdout
123