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