#include using namespace std; #include int main() { system("clear"); //clear the screen float number = 1.80; float calculation = number * 1.1; // 1.8 + 10% of 1.8 float expectedanswer = 1.98; //as we know, 1.8 + 10% of 1.8 = 1.98 cout <<"Comparing " << calculation <<" and " << expectedanswer << endl; if ( fabs( calculation - expectedanswer ) < .0001 ) { cout <<"Equal!" <