Computer Science, asked by subratmishra4959, 1 year ago

Write a program to find the sum of all even numbers from 1 to n where the value of n is taken as input. [for example when n is 10 then the sum is 2+4+6+8+10 = 30

Answers

Answered by rashmidesai
0

program

6+6+18

12+18

=30

Similar questions