In python execute: INPUT 2 NUMBERS. Check the divisibility of FIRST NUMBER by SECOND number. IF 8 IS ENTERED IN FIRST NUMBER AND 2 IN SECOND NUMBER THE OUTPUT SHOULD BE 8 IS DIVISIBLE BY 2.
Answers
Answered by
0
Answer:
a = int(input("Enter the first number: "))
b = int(input("Enter the first number: "))
if (a % b == 0):
print(a, " is divisible by ", b)
else:
print(a, " is not divisible by ", b)
Similar questions