📜  fizz buzz fizzbuzz python 游戏 - Python 代码示例

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

代码示例4
inputValue = int(input("Enter a Number: "))

if inputValue % 3 == 0 and inputValue % 5 == 0 :
    print("fizzbuzz")
elif inputValue % 3 == 0 :
    print("fizz")
elif inputValue % 5 == 0 :
    print("buzz")
else:
    print(inputValue)