Sunday, July 14, 2019

WAP to input a number and check that number is divisible by 7 or not.

number = int(input("Enter Number = "))
print('-'*20)
if(number % 7 == 0):
print(str(number) + " is divisible by 7")
else:
print(str(number) + " is not divisible by 7")

No comments:

Post a Comment