Pages

Saturday, 19 May 2012

program to print Odd Numbers


41/*Write a program to print Odd Numbers*/

#include<stdio.h>
#include<conio.h>
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