#P0015. FizzBuzz问题
FizzBuzz问题
1. Description
Print number from 1 to 100, following requirements below
- If a number is divisible by 3, print "Fizz" instead of the number
- If a number is divisible by 5, print "Buzz" instead of the number
- If a number is divisible by both 3 and 5, print "FizzBuzz" instead of the number
2. Input & Output
Input No input for this problem.
Output:
- Use
print()for your output - Output 100 lines of number or string
Example
# Input:
# Output:
1
2
Fizz
4
Buzz
...