Skip to content

Commit 92b207b

Browse files
authored
Merge pull request #109 from prankush247/main
Initial commit
2 parents c17d7e1 + 56aa135 commit 92b207b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Sum_of_EvenNos_in_A_range.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
initial=int(input("Enter the lower limit number:"))
2+
final=int(input("Enter the higher limit number:"))
3+
4+
sum=0
5+
for i in range(initial,final+1):
6+
if i%2==0:
7+
sum+=i
8+
9+
print("The sum of even numbers from ",initial," to ",final,"is -> ",sum)

0 commit comments

Comments
 (0)