Write a program in python that accepts two integers from the user and prints a message sayingif first number is divisible by second numberor if it is not
Answers
Answered by
8
Explanation:
a=int(input("enter Numretor no"))
b=int(input("enter denominator no"))
if (a>b):
print("first no.is divisible by second no")
else:
print("first no. is not divusible")
Answered by
3
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