Feb 24, 2007

C program to generate odd numbers

C program  to generate odd numbers using while loop.

#include<stdio.h>
main()
{
int a=1;
clrscr();
while (a<20)
{
printf("\n%d",a);
a=a+2;
}
getch();
}

No comments:

Post a Comment

Infolinks In Text Ads

Total Pageviews

Powered by Blogger.

Dont Forget To Follow Us

Blog Archive