#include using namespace std; // find maximum of two numbers using if statement (without else) int main () { int num1, num2, max; cout << "Enter two numbers: "; cin >> num1 >> num2; max = num1; // default assignment - maximum is the first number if (num2 > max) // check if second number is bigger than the first one { max = num2; // if so update the maximum, if not do nothing } cout << "maximum of these two numbers is: " << max << endl; return 0; }