using namespace std;
// Counting loop example.
cout << "How many? ";
cin >> cnt;
cout << "cnt = " << cnt << endl;
This loop ends when the counter reaches zero, since
the zero is treated as false, while the larger
values are treated as true.