Computer Science, asked by sonu555, 1 year ago

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 jondon1
1
a=20
b=5
c=a/b
Print "first number is divisible by second number,", c
Answered by prakharagrawal6055
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