Answer to Question #323749 in Java | JSP | JSF for Kaira

Question #323749

Write a Python program which iterates the integers from 1 to 50. For multiples of two print “even”, for multiples of three print “multipleOf3”, and for numbers which are multiples of both two and three print “evenmultipleOf3”, otherwise print the number. Hint: Use a loop for this problem.

Sample Output:

 

Sample Input

Sample Output

1

1

2

even

3

multipleOf3

4

even

5

5

6

evenmultipleOf3

14

even

15

multipleOf3

   Sample Input and Output

​​


0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

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