1
0
Fork 0

commited tasks

This commit is contained in:
s45150 2017-11-19 18:02:03 +01:00
parent 2522037757
commit 4f1d8b6065
1 changed files with 2 additions and 1 deletions

View File

@ -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