fork download
  1. #include <stdio.h>
  2. void hoge(int n){
  3. if(n<=0){
  4. printf("0");
  5. }
  6. else{
  7. printf("%d",n);
  8. hoge(n-1);
  9. printf("%d",n);
  10. }
  11. }
  12.  
  13.  
  14.  
  15. int main(void) {
  16. hoge(3);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
3210123