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