Commit 441a597d by BellCodeEditor

auto save

parent 493a98ab
Showing with 26 additions and 0 deletions
def shuru():
liebiao = []
while True:
a = input("请输入")
if a=="q":
break
else:
liebiao.append(a)
print(liebiao)
shuru()
\ No newline at end of file
a=int(input("请输入一个非负数:"))
b=int(input("请输入一个非负数(b>a):"))
c=0
if a%2==0:
a+=1
while a<=b:
c=c+a
a+=2
else:
while a<=b:
c=c+a
a+=2
print(c)
\ 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