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
Comments
Leave a comment