commit b8d3e78dbd0831faaaec67bf51b26deeae3f4986 Author: t3xhno Date: Tue Feb 6 14:16:08 2024 +0100 Initial commit 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)