## 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();
}
Print the even numbers from 1 to 100
Posted by Bijon Labels: ansi c by balagurusamy, ansi c by balaguruswamy, assignment programming, assignment solutions, programming answers, programming assignments, programming c, programming c tutorial
Subscribe to:
Post Comments (Atom)


0 comments
Post a Comment