Skip to content

Commit 2ceb0db

Browse files
committed
sum.py
1 parent d2ab413 commit 2ceb0db

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sum.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
total=0
2+
for i in range(1,101):
3+
4+
if i%2==0:
5+
total+=i
6+
print(total)
7+
8+
for i in range(1,101):
9+
total+=i
10+
print(total)

0 commit comments

Comments
 (0)