fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. #define EPS 1e-6
  5. int main(void)
  6. {
  7. float a, b, c, disc, p, q;
  8. printf("EPS = %e\n",EPS);
  9. scanf("%f,%f,%f", &a, &b, &c);
  10. if (fabs(a) <= EPS)
  11. {
  12. printf("It is not a quadratic equation!\n");
  13. exit(0);
  14. }
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 5320KB
stdin
1,2,1
stdout
EPS = 1.000000e-06