WAP TO PRINT ODD NUMBERS FROM 1 TO 10
Thursday, July 2, 2009
Leave a Comment
#include<stdio.h>
#include<conio.h>
void main ()
{
int a;
clrscr ();
a=1;
while (a<=20)
{
if (a%2==1)
printf ("\n%d",a);
a++;
}
getch ();
}
OUTPUT
1
2
3
4
5
6
7
8
9
10
0 comments »
Leave your response!