Statements

#include <iostream>

int main() {
    // Declare variables
    int num1, num2, sum, product;

    // Prompt user for input
    std::cout << "Enter the first number: ";
    std::cin >> num1;

    std::cout << "Enter the second number: ";
    std::cin >> num2;

    // Perform arithmetic operations
    sum = num1 + num2;
    product = num1 * num2;

    // Display results
    std::cout << "Sum: " << sum << std::endl;
    std::cout << "Product: " << product << std::endl;

    // Check if the first number is greater than the second
    if (num1 > num2) {
        std::cout << num1 << " is greater than " << num2 << std::endl;
    } else if (num1 < num2) {
        std::cout << num1 << " is less than " << num2 << std::endl;
    } else {
        std::cout << num1 << " is equal to " << num2 << std::endl;
    }

    return 0;
}