#include<stdio.h>
#include<conio.h>
int main(void)
{
int a=2,sum=0;
do
{
sum=sum+a;
a+=2;
}
while(a<=100);
printf(“SUM OF EVEN NUMBERS FROM 2 TO 100 IS %d “,sum);
getch();
}
#include<stdio.h>
#include<conio.h>
int main(void)
{
int a=2,sum=0;
do
{
sum=sum+a;
a+=2;
}
while(a<=100);
printf(“SUM OF EVEN NUMBERS FROM 2 TO 100 IS %d “,sum);
getch();
}