Answer to Question #225385 in Python for Roti

Question #225385
Write a python program that reads an integer and prints back the given integer if it is a multiple of 2 and 5 otherwise print " Not a multiple of 2 and 4".
1
Expert's answer
2021-08-11T14:11:51-0400
n = int(input())
if n % 2 or n % 5:
    print('Not a multiple of 2 and 5')
else:
    print(n)

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