Given a number n, for each
integer i in the range from
1 to n inclusive, print one
value per line as follows:
• If i is a multiple of both 3
and 5, print FizzBuzz.
• If iis a multiple of 3 (but
not 5), print Fizz.
• If i is a multiple of 5(but
not 3), print Buzz.
• If i is not a multiple of
3 or 5, print the value of i. program or code in python
Answers
Answered by
3
Answer:
5
Explanation:
it's my announcement that the following products will make a
Answered by
0
Explanation:
The number 3,6,9, and 12 are multiple of 3(but not 5),so print Fizz on those lines.
The numbers 5 and 10 are multiple of 5 (but not 3),so print Buzz on those lines.
The number 15 is a multiple of both 3 and 5,so print FizzBuzz on that line.
None of the other value is multiple of both 3 and 5,so print the value of i on those lines.
Similar questions