Python Program to Check for Divisibility of a Number
x = int(input("Insert the numerator: "))
y = int(input("Insert the denominator: "))
if x % y == 0:
print(x, " is divisible by ", y)
else:
print("No! ", x, " is not divisible by ", y)
Output:
|
Insert the numerator: 24 |
|
Insert the numerator: 25 |