Problem 02

Problem :  2+4+6+….+100=?

#include<stdio.h>
#include<conio.h>
void main(void)
{
clrscr();
int i,sum;
sum=0;
printf(“\nProg:SERIES: 2+4+6+………+100= ?”);
for(i=2;i<=100;++i)
{
sum=(sum+i);
i++;
}
printf(“\n\nResult: %d”,sum);
getch();

}