Electrical and Computer Engineering
13 of 23
UAH
CPE 112
Sentinel-Controlled Loop Example
•
–while (!(month == 2 && day == 31))
–{
– cin >> month >> day;
– .
– .
– .
–}
•
•Problem: month and day aren’t initialized