fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. double x=0.1,count=1000;
  6. double A=x*count;
  7. double B=0;
  8. for(double i=0;i<count;++i) B+=x;
  9. if(A!=B) printf("%lf != %lf\n",A,B);
  10. return 0;
  11. }
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
100.000000 != 100.000000