#include int main() { float x, y; std::cout << "Enter the first number: "; std::cin >> x; std::cout << "Enter the second number: "; std::cin >> y; if (x * y <= 30) { float answer = 3 * x - y; //the first equation std::cout << "The answer is " << answer << std::endl; } else if (x * y > 30) { float answer = 3 * x + y; //the second equation std::cout << "The answer is" << answer << std::endl; } else std::cout << "Please enter a valid input."; return 0; }