Question: # Get two numbers from the user num 1 = input ( Enter the first number: ) num 2 = input (
# Get two numbers from the user
num input Enter the first number:
num input Enter the second number:
# Perform multiplication
result num num
printThe product of the numbers is: result
# Perform division, if possible
if num:
result num : num
printfThe division of the numbers is: result"
else:
printDivision not possible: Cannot divide by zero!"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
