Jan 27, 2007

C++ Program to print natural numbers in reverse order

How to write a C++ program that generates natural numbers in reverse order.

main()
{
clrscr();
int i;
for (i=100;i>=1;i--)
{
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