(python) create a program that prompts the user to enter their name. Using their name in the next prompt, ask the user for an integer. Using their name, ask for another integer. Find out if the number that the user entered is divisible by the other. Output the results back to the user.
Answers
Answered by
6
n=input("Enter your name : ")
print(n,", enter an integer : ",end="")
n1=int(input())
print(n,", enter another integer : ",end="")
n2=int(input())
if(n1%n2==0):
print("First integer is divisible by second.")
else:
print("First integer is not divisible by the second.")
Similar questions