Skip to content

Commit 0039a4e

Browse files
committed
Add new file
1 parent 5959958 commit 0039a4e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

divisors.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def find(n):
2+
z = 0
3+
for i in range(1, n+1):
4+
if i % 3 == 0 or i % 5 == 0:
5+
z += i
6+
return z
7+
8+
find(10)

0 commit comments

Comments
 (0)