Commit 7ddd1340 by BellCodeEditor

auto save

parent b683062a
Showing with 6 additions and 6 deletions
def A(n):
if n==1:
def A(a,b):
if a==b:
return 1
n=A(n-1)+n
return n
n=(A(a+1,b)+1)*2
return(n)
print(A(4))
\ No newline at end of file
print(A(1,10))
\ 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