Switch

Goal

Your goal in this exercise is to write a program that outputs the day of the week (i.e. Monday, tuesday etc) . If you know of a way to get the day of the week as a number, feel free to use it and output the name of the day. If not, take a number between 1 and 7 or 0 and 6 from the user and output the result.

Language: Any
Difficulty level: Very easy.
Estimated time: 10 minutes

 

This entry was posted in Basic control flow. Bookmark the permalink.