#include <iostream>using namespace std; int main() { double a, b, c; while (cin >> a >> b >> c) { cout << a << " + " << b << ((a+b==c)?" == ":" != ") << c << endl; } return 0;}
3.0 6.0 9.0 0.3 0.3 0.6 0.3 0.6 0.9 0.3 0.2 0.5 0.1 0.9 1.0
3 + 6 == 9 0.3 + 0.3 == 0.6 0.3 + 0.6 != 0.9 0.3 + 0.2 == 0.5 0.1 + 0.9 != 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!