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.
1
Expert's answer
2021-06-21T05:52:06-0400
number=int(input("Enter a number: "))
ifnumber%5 == 0:
print(f"{number} is multiple of 5")
else:
print(f"{number} is NOT multiple of 5")
ifnumber%7 == 0andnumber%11 != 0:
print(f"{number} is divisible by 7 but not by eleven.")
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments