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
0
program
6+6+18
12+18
=30
Similar questions