fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. double p=fabs(24.9996);
  5. double t=fabs(25.0003);
  6. printf("%0.3lf %0.3lf\n",p,t);
  7. if(fabs(p - t) < 1E-3)
  8. printf("equal");// why this not executed?
  9. }
Runtime error #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
25.000 25.000
equal