forked from tdwojak/Python2017
commited tasks
This commit is contained in:
parent
2522037757
commit
4f1d8b6065
@ -10,7 +10,8 @@ def sum_from_one_to_n(n):
|
||||
if n < 0:
|
||||
return 0
|
||||
else:
|
||||
for i in range(n):
|
||||
x = 0
|
||||
for i in range(n+1):
|
||||
x = x + i
|
||||
return x
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user