Question: A program asks the user to enter two numbers which are stored in variables num 1 and num 2 . Which if statement correctly displays

A program asks the user to enter two numbers which are stored in
variables num1 and num2. Which if statement correctly displays message "OK" only
when both variables store value 0?
if num1==0 and num2==0 :
print ("OK")
if num10 or num 20 :
print ("OK")
if num1==0 or num 2=0 :
print ("OK")
if num10 and num 20 :
print ("OK")
A program asks the user to enter two numbers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!