5. Assume weekday has been previously declared as an int and given a meaningful value. Write a switch statement that for
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
5. Assume weekday has been previously declared as an int and given a meaningful value. Write a switch statement that for
statement that for any value of weekday, produces exactly the same output as the following if statement. if (weekday == 1) s get me down"; 7) cout << "rainy days and monday else if (weekday == 2) cout << "ruby tuesday"; else if (weekday == 6 || weekday cout << "wonderful weekend"; cout << "regular day"; else
5. Assume weekday has been previously declared as an int and given a meaningful value. Write a switch