The “do …while” loop, Example
•
•
•
•
•
int month = -1;
•
do
•
{
•
cout << “Please input month {1..12}\n”;
•
cin >> month;
•
}
•
while ((month < 1) || (month > 12));
•