📜  如何在奇数和偶数上制作python程序 - Python代码示例

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

代码示例3
injd = int(input('Enter a number'))
n = injd % 2
if n > 0:
  print('This is an odd number')
else:
  print('This is an even number')