## Problem : 2.3 :: write a program that prints the even numbers from 1 to 100.


## Solution ::

## Write down headers yourself.

void main()
{
int a;
clrscr();
printf("EVEN NUMBER FROM 1-100:");
printf("\n");
for(a=1;a<=100;a++)
{
if(a%2==0)
printf("%d ",a);
}
getch();
}

0 comments