#include #include using namespace std; int main() { double profit {0.00}; cout << "How many dollars did we make? "; cin >> profit; if (!cin) { cerr << "Sorry, that wasn't a number.\n"; return EXIT_FAILURE; } double loss {0.00}; cout << "How many dollars did we lose? "; cin >> loss; if (!cin) { cerr << "Sorry, that wasn't a number.\n"; return EXIT_FAILURE; } if (profit <= loss) { //if profit is less than or equal to loss cout << "We're not making any money.\n"; if (profit < loss) { //if profit is less than loss cout << "In fact, we're losing money.\n"; } } return EXIT_SUCCESS; }