Python学習2——if文
333 ワード
# python code by zzw
# time:2015-7-27
# if...elif...else shell
#
x=int(input("Please input an integer:"));
if x<0:
x=0;
print("Negative changed to zero");
elif x==0:
print("Zero");
elif x==1:
print("One");
else:
print("More");