Commit 8f6422f7 by BellCodeEditor

auto save

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