Commit bfd8ffcc by BellCodeEditor

save project

parent 22354288
Showing with 8 additions and 0 deletions
def func(num):
if num == 1:
return 1
Q = num + func(num-1)
return Q
w=func(1)
print(w)
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