fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3.  
  4. int main()
  5. {
  6. double x, y;
  7. printf("input X/n x=");
  8. scanf(&x);
  9. if(x >= 25)
  10. y = (x + 75)/(sqrt(x) + 5);
  11. else if(x > 25 && x >= 10)
  12. y = 0.4*x;
  13. else if (5 > x && x >= 2)
  14. y = exp(x - 2);
  15. printf("y = ",y );
  16. return 0;
  17.  
  18.  
  19. }
Success #stdin #stdout 0s 4560KB
stdin
5
stdout
input X/n x=y =