Commit 67067a25 by BellCodeEditor

save project

parent 737b7800
Showing with 1 additions and 1 deletions
...@@ -5,7 +5,7 @@ def s(n): ...@@ -5,7 +5,7 @@ def s(n):
if n == 1: if n == 1:
return 1 return 1
a=s(n-1) a=s(n-1)
b=a+n b=a+n*n*n
return b return b
r =s(100) r =s(100)
print(r) print(r)
......
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