#include <iostream>
using namespace std;
// Counting loop example.
int main()
{
int cnt;
cout << "How many? ";
cin >> cnt;
while(cnt--)
cout << "cnt = " << cnt << endl;
}
This loop also uses the counter as a test, but the
test additional performs the increment, so there
is no increment statment