Question: # QUESTION 2 : # Create a python program that will take two numbers from the user: A and B . # Check if A

# QUESTION 2:
# Create a python program that will take two numbers from the user: A and B.
# Check if A divided by B leaves a remainder of 2 or not.
# Example:
# If the user enters 10 and 5, print "NOT ACCEPTED" (because the remainder is 0)
# If the user enters 12 and 5, print "ACCEPTED" (because the remainder is 2)
# Write your code here:
A = eval(input("Enter A: "))
B= eval (input("Enter B: "))
if A%B==2 :
print ("ACCEPTED")
else:
print("NOT ACCEPTED")
 # QUESTION 2: # Create a python program that will take

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 Databases Questions!