if (A > B) cout << A << " is larger than " << B << ".\n"; cout << "This statement is always executed.\n"; if (A > B) { LargerAB = A; cout << A << " is larger than " << B << ".\n"; } else { LargerAB = B; cout << B << " is larger than " << A << ".\n"; } cout << LargerAB << " is the larger value.\n"; if ((A >= B) && (A >= C)) Largest = A; else if (B >= C) // A is not largest at this point Largest = B; else Largest = C; switch (Month) { // 30 days hath Sept., Apr., June, and Nov. case 9: case 4: case 6: case 11: DaysInMonth = 30; break; // all the rest have 31 case 1: case 3: case 5: case 7: case 8: case 10: case 12: DaysInMonth = 31; break; // except February case 2: // assume LeapYear is true if leap // year, else is false if (LeapYear) DaysInMonth = 29; else DaysInMonth = 28; break; default: cout << "Incorrect value for Month.\n"; } // end switch