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