Computer Science, asked by Ayushhomework, 8 months ago

accept numbers till user wants and print the sum of all even numbers and the count of all even numbers​

Answers

Answered by panesarh989
2

Answer:

Sum = n * (n + 1)

Hence the sum of first n natural even numbers is n(n+1).

Similar questions