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