Commit ee3a584c by BellCodeEditor

save project

parent a13f40f4
Showing with 3 additions and 2 deletions
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
def sum_numbers(ikun): def sum_numbers(ikun):
if ikun == 1: if ikun == 1:
return 1 return 1
hkun = sum_numbers(num - 1) hkun = sum_numbers(ikun - 1)
return ikun + hkun return ikun + hkun
result = sum_numbers(100) result = sum_numbers(990)
print(result) print(result)
\ 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