fork download
  1. #include <stdio.h>
  2.  
  3.  
  4.  
  5. main(){
  6.  
  7. // the lines above get executed only on local machine, not on online judge
  8.  
  9. int n,i;
  10. n=f(6);
  11. printf("%d" ,n);
  12.  
  13. }
  14.  
  15. f(int x){
  16. if(x==2) return 2;
  17. else {
  18. printf("-");
  19. f(x-1);
  20. }
  21. }
  22.  
Success #stdin #stdout 0.01s 5360KB
stdin
Standard input is empty
stdout
----2