fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main()
  4. {
  5. float e,x,a=4.62,b=0.68;
  6. scanf("%f",&x);
  7. if (x>=2*a)
  8. {
  9. e=a*atan((3/2*x+1)+b);
  10. }
  11. else if((x<=b)&&(x<a)) {
  12.  
  13.  
  14. e=b*asin(a+b/log(x));
  15. }
  16. printf("e = %f",e);
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 4544KB
stdin
Standard input is empty
stdout
e = nan