Another Nested Loop Example
cin >> starCount;
while
(cin)
{
loopCount = 1;
while
(loopCount <= starCount)
{
cout << ‘*’;
loopCount++;
}
cout << endl;
cin >> starCount;
}
cout << “Goodbye” << endl;