Write and execute a PYTHON program to perform the following tasks
1.To asks a number and test the number whether it is multiple of 5 or not, divisible by 7 but not by eleven.
number=int(input("Enter a number: "))
if number%5 == 0:
print(f"{number} is multiple of 5")
else:
print(f"{number} is NOT multiple of 5")
if number%7 == 0 and number%11 != 0:
print(f"{number} is divisible by 7 but not by eleven.")
Comments
Leave a comment