Write a python program that displays a message as follows for a given number:
- If it is a multiple of three, display "Zip".
- If it is a multiple of five, display "Zap".
- If it is a multiple of both three and five, display "Zoom".
- If it does not satisfy any of the above given conditions, display "Invalid".
Examples:
Input:
Num = 9
Output : Zip
Input:
Num = 10
Output : Zap
Input:
Num = 15
Output : Zoom
Input:
Num = 19
Output: Invalid
Code
Output
need an explanation for this answer? contact us directly to get an explanation for this answer