Saturday, 10 December 2011

Write a program to print Odd Numbers in c

#include
#include
void main()
{
int i;
clrscr();
for(i=0;i<100;i=i+2)
{
printf("%d",i+1);
printf("\t");
}
getch();
}


OUTPUT
1 3 5 7 9 11 13 15 17 19………….99

No comments:

Post a Comment