Commit 8271c181 by BellCodeEditor

save project

parent 2eee4334
Showing with 17 additions and 0 deletions
def A(a):
if a <= 2:
return 1
else:
n=A(a-1)+A(a-2)
return n
s=A(20)
i=1
while True:
i+=1
a=A(i)
if a>20 :
print(i)
break
print(s)
\ 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