Jan 27, 2007

C++ Program to print even numbers (table of 2)

Here is a C++ program to generate series of even numbers using for loop.
main()
{
clrscr();
int i;
for(i=2;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