Challenge: Display Day of the Week

Test your understanding of the concepts you learned by solving a difficult challenge in this lesson.

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 have already initialized the variable number at the backend.

Output

The table given below shows the values of input and the corresponding output.

Get hands-on with 1200+ tech skills courses.