Friday, 19 July 2013

Program to Print Even Number Between (1 to 10)

#include <stdio.h>
void main()
{
int a;
clrscr ();
printf("Enter the Value");
for (a=1;a<=10;++a)
{
if (a%2==0)
printf("\n%d",a);
}
getch();

}

No comments:

Post a Comment