Umi Devi
Weblog From a Girl for All People and Telling About All Infomation
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
‹
›
Home
View web version
No comments:
Post a Comment