Computer Science, asked by lakharasunita20, 2 months ago

Write a program to print sum of first 50 even numbers​

Answers

Answered by alphinfrancis25
1

Answer:

sum=0

for i in range(0,51):

        if i%2 == 0:

                sum=sum+i

print('sum of first 50 even no.s :',sum)

Hope You Get It

Similar questions