Answer to Question #221419 in Python for Hari nadh babu

Question #221419

Sum of Even numbers


This Program name is Sum of Even numbers. Write a Python program to Sum of Even numbers


The below link contains Sum of Even numbers question, explanation and test cases


https://drive.google.com/file/d/1ZB7K9IsnO1Slj4LIMnJCk4NEVsjQDLeq/view?usp=sharing


We need exact output when the code was run

1
Expert's answer
2021-08-01T00:29:14-0400
N=int(input())
sum_even=0
for i in range(1,N+1):
    if i%2==0:
        sum_even+=i;
print(sum_even)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS