Tuesday, January 4, 2011

ODD SERIES

WAP TO PRINT ODD NUMBERS FROM 1 TO 20
void main ()
{
int a;
clrscr ();
a=1;
while (a<=20)
{
if (a%2==1)
printf ("\n%d",a);
a++;
}
getch ();
}

No comments:

Post a Comment