write a python program that accepts two integer from the user and prints a message saying if first number is divisible by second number or if it is not.
Answers
Answered by
1
a=20
b=5
c=a/b
Print "first number is divisible by second number,", c
b=5
c=a/b
Print "first number is divisible by second number,", c
Answered by
1
Answer:
num1=int(input("Enter first number:"))
num2=int(input("Enter second number:"))
if num1%num2==0:
print(num1,"is divisible by",num2)
else:
print(num1,"is not divisible by",num2)
Explanation:
Similar questions