Answer to Question #208952 in Electrical Engineering for mona

Question #208952

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: "))
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.")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS