-
Ask the user for their favorite school subject.
-
Store their answer in a variable
-
Pass the variable as the expression in a switch statement.
-
Create 5 different cases for different subjects. Each case will print the subject chosen and a custom message of your choosing.
-
Create a default case to handle any case not handled.
cazaresmr/Selection-Statement-Exercise-2
.NET 6.0 template project for the Selection-Statement-Exercise 2 at TrueCoders
C#