fork download
  1. #include <stdio.h>
  2. void decreasing(int n){
  3. if(n==0) return;
  4. printf("%d",n);
  5. decreasing (n-1);
  6. return;
  7.  
  8.  
  9. }
  10.  
  11.  
  12. int main(void) {
  13. int n;
  14. printf("Enter the value of n \n");
  15. scanf("%d",&n);
  16. decreasing (n);
  17. return 0;
  18. }
Success #stdin #stdout 0s 5320KB
stdin
10
stdout
Enter the value of n  
10987654321