📜  查找奇偶python代码示例

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

代码示例4
n = int(input("Enter a number: "))
print(n,"is Even.") if (n % 2) == 0 else print(n,"is Odd.")