99.7k views
3 votes
Write a program that reads in two integers and determines if the first is a multiple of the second. [hint: use the modulus operator.]

User Fanick
by
8.3k points

1 Answer

2 votes
# Written in python

isMult = False


a = int(input("Enter an integer: "))
b = int(input("Enter an integer: "))

if a % b == 0:
isMult = True
print(a, "is a multiple of" , b")
User Bluegenetic
by
8.0k points