accept numbers till user wants and print the sum of all even numbers and the count of all even numbers
Answers
Answered by
2
Answer:
Sum = n * (n + 1)
Hence the sum of first n natural even numbers is n(n+1).
Similar questions