Commit 8f6422f7 by BellCodeEditor

auto save

parent 27f748b7
Showing with 6 additions and 6 deletions
def func (n): def fun (n):
if n == 1: if n == 1:
return 1 return 1
func(num) = num +func(num-1) sum=fun(n-1)+n
return num return sum
func = num(1) r=fun(100)
print(num_1) print(r)
\ No newline at end of file \ 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