Answer to Question #298745 in Python for Riyad

Question #298745

Write the Python code of a program that reads an integer, and prints the integer if it is NOT a multiple of 2 OR NOT a multiple of 5.

1
Expert's answer
2022-02-16T14:54:50-0500
num = 10

if num % 2 != 0 or num % 5 != 0:
    print(num)

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