Commit 40b90488 by BellCodeEditor

auto save

parent 70850cf8
Showing with 14 additions and 0 deletions
#第一种方法
a=int(input("请输入数据:"))
if : #判断是否可以整除2
print("偶数")
else:
print("奇数")
#第二种方法
a=int(input("请输入数据:"))
if a%2==0:
print("偶数")
else:
print("奇数")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment