-
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.
alexdavid716 / selection-statement-exercise-2 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from truecodersio/selection-statement-exercise-2
.NET 6.0 template project for the Selection-Statement-Exercise 2 at TrueCoders