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