fork(1) download
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. const double y = 109.3;
  7. const double p = -0.0346;
  8.  
  9. float x, lm;
  10.  
  11. scanf("%f", &x);
  12. lm = (p/(x-log(y)))*log10(sqrt(exp(x-y)));
  13.  
  14. printf("LM = %f", lm );
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5484KB
stdin
111
stdout
LM = -0.000120