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.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘a’:
prog.c:6:17: error: expected ‘;’ before ‘a’
  printf("%d ",n)
                 ^
                 ;
  a(n-1);
  ~               
stdout
Standard output is empty