fork download
  1. #include <iostream>
  2. using std::cout;
  3.  
  4. int main()
  5. {
  6. double a = 9.0;
  7. cout << (1.0*a/a == 1.0) << " " << (1.0/a*a == 1.0) << std::endl;
  8. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
1 1