Question: Debug#Get two numbers from the user num 1 = input ( ' Enter the first number: ' ) num 2 = input ( ' Enter
Debug#Get two numbers from the user
num inputEnter the first number:
num inputEnter the second number:
#perform multiplication
result num num
printThe product of the number is:
#perform division, if possible
if num :
result num num #Division sign is written as and not : This is a syntax error
printfThe division of number is: result'
else:
printDivision not possible: Cannot divide by zero!#Get two numbers from the user
num inputEnter the first number:
num inputEnter the second number:
#perform multiplication
result num num
printThe product of the number is:
#perform division, if possible
if num :
result num num #Division sign is written as and not : This is a syntax error
printfThe division of number 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
