Commit 56efb23d by BellCodeEditor

save project

parent 7bac8498
Showing with 11 additions and 0 deletions
def sum_num(n):
if n == 1:
return 1
n = n + sum_num(n-1)
return n
num = sum_num(10)
print(num)
\ No newline at end of file
def fnce(n):
\ 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