This Python program reads two integers from the user and calculates their product using the * operator.
In this example, the first number is 7 and the second is 2, so the output will be 14.
# Read two integers
a = int(input("Enter the first number: "))
b = int(input("Enter the second number: "))
# Calculate the product
result = a * b
# Display the result
print(f"{a} × {b} = {result}")
7 × 2 = 14
- The user enters two integers
- The program multiplies them using the * operator
- The result is printed in a formatted string showing the full equation