Commit 1a5af3aa by BellCodeEditor

save project

parent a4d604bf
Showing with 2 additions and 2 deletions
def A(n): def A(n):
if n==1: if n==1 or n==2:
return 1 return 1
D=A(n-1)+n D=A(n)
return D return D
D=A(20) D=A(20)
print(D) print(D)
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