From 69e8d10aba1cd070091e07359b94d51685da8367 Mon Sep 17 00:00:00 2001 From: s442188 Date: Sat, 2 Jun 2018 13:47:41 +0200 Subject: [PATCH] zad 8 --- labs02/task08.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs02/task08.py b/labs02/task08.py index 368d765..bd81607 100644 --- a/labs02/task08.py +++ b/labs02/task08.py @@ -9,7 +9,7 @@ przez 3 lub 5 mniejszych niż n. def sum_div35(n): suma=0 for i in range(n): - if (n%3 ==0 or n%5 ==0): + if (i%3 ==0 or i%5 ==0): suma += i return(suma)