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