Challenge: Display Day of the Week
Explore how to use the switch statement in C++ to map a numeric input to its corresponding day of the week. This lesson helps you practice conditional statements and console output to strengthen your coding skills and prepare for related challenges.
We'll cover the following...
We'll cover the following...
Problem statement
In this challenge, you are given a weekday number. Your task is to display the corresponding day name to the console using the switch statement.
Input
We ...