You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
206 B
18 lines
206 B
|
|
|
|
for x in range(1, 101):
|
|
|
|
y = (x%3)
|
|
z = (x%5)
|
|
|
|
if y == 0 and z == 0:
|
|
print("FizzBuzz")
|
|
|
|
elif y == 0:
|
|
print("Fizz")
|
|
|
|
elif z == 0:
|
|
print("Buzz")
|
|
|
|
else:
|
|
print(x)
|
|
|