fork download
  1. #include <iostream>
  2.  
  3. double a = 0.3;
  4. double b = 0.7;
  5. double c = 0.3*0.7;
  6.  
  7. int main() {
  8. std::cout << (a * b == c);
  9. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty