fix(r-1.4_scratch.py): corrected operation to stop with value of n being positive

This commit is contained in:
baphim
2026-09-04 22:08:58 -04:00
parent ad608ade66
commit 812d682f74
+1 -1
View File
@@ -11,7 +11,7 @@ sum of the squares of all the positive integers smaller than n.
def squares_sum(n):
list = []
while n >= 1:
while n >= 2:
n = n - 1
print(n)