📜  fizzbuzz python 解决方案 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:03.010000             🧑  作者: Mango

代码示例6
fizz = 3
buzz = 5
fizzbuzz = fizz * buzz

for i in range(100):
  if i % fizzbuzz == o:
    print('fizzbuzz')
   elif i % fizz == 0:
    print('fizz')
   elif i % buzz == 0: 
    print('buzz')
   else:
    print(i)