Commit 86a79ecb by BellCodeEditor

auto save

parent 9f4e17fe
Showing with 40 additions and 0 deletions
sam=0
for i in range(1,51):
sam+=i
print(sam)
\ No newline at end of file
mmm=0
n=int(input("n is what"))
m=int(input("m is what"))
if n>m and not n>300:
for i in range(m,n+1):
if i%2==1:
mmm+=i
print(mmm)
else:
print("wrong")
a=1
b=1
c=0
d=0
list_w=[]
list_w.insert(0,a)
list_w.insert(1,b)
index=2
n=int(input("输入n为多少?"))
if not(n<0 or n==0):
if n>2:
c=a+b
a=b
b=c
list_w.insert(index,n)
index+=1
print(list_w)
for i in list_w:
d+=i
print(i)
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