Jan 27, 2007

C++ Program to generate odd numbers

This C++ program generates odd numbers between 1 to 20
main()
{
clrscr();
int i;
for (i=1;i<=20;i=i+2)
{
cout<<i<<endl;
}
getch();
}

No comments:

Post a Comment

Infolinks In Text Ads

Total Pageviews

Powered by Blogger.

Dont Forget To Follow Us

Blog Archive