Design a case structure that tests the month variable and does the following: If the month variable
Question:
Design a case structure that tests the month variable and does the following:
- If the month variable is set to 1, it displays “January has 31 days.”
- If the month variable is set to 2, it displays “February has 28 days.”
- If the month variable is set to 3, it displays “March has 31 days.”
- If the month variable is set to anything else, it displays “Invalid selection.”
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: