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