From b8d3e78dbd0831faaaec67bf51b26deeae3f4986 Mon Sep 17 00:00:00 2001 From: t3xhno Date: Tue, 6 Feb 2024 14:16:08 +0100 Subject: [PATCH] Initial commit --- problem1.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 problem1.py diff --git a/problem1.py b/problem1.py new file mode 100755 index 0000000..b929f79 --- /dev/null +++ b/problem1.py @@ -0,0 +1,6 @@ +sum = 0 + +for i in range(1, 1000): + if i % 3 == 0 or i % 5 == 0: sum += i + +print(sum)