answersLogoWhite

0


Best Answer

In Java:

sum = 0;
for (i = 2; i <= 50; i += 2)
sum += i;

Similar (perhaps identical?) in C.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to find the sum of even numbers from 2 to50?
Write your answer...
Submit
Still have questions?
magnify glass
imp