BC52 判断整数奇偶性
思路:
step1:输入一个数;如果可以整除2,打印Even;否则打印Odd;
代码如下:
while True:
try:
n = int(input())
if n%2 == 0:
print('Even')
else:
print('Odd')
except:
break
while True:
try:
n = int(input())
if n%2 == 0:
print('Even')
else:
print('Odd')
except:
break