fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. // your code goes here
  5. int a = 1999999900;
  6. float b = 2000000000;
  7. std::cout
  8. << a << " / " << b << " = " << a / b << std::endl
  9. << "where a" << ((a == b) ? " == " : " != ") << "b." << std::endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5580KB
stdin
Standard input is empty
stdout
1999999900 / 2e+09 = 1
where a != b.