// ForDemo - input a loop count. Loop while // outputting astring nArg number of times. #include #include int main(int nArg, char* pszArgs[]) { // input the loop count int nLoopCount; cout << "Enter nLoopCount: "; cin >> nLoopCount; // count up to the loop count limit for (int i = 1; i <= nLoopCount; i++) { cout << "We've finished " << i << " loops\n"; } return 0; }