Solution: Switch Statement
Let's discuss the solution to the exercise.
We'll cover the following
Problem
Write code for a console application that receives an alphabet from the user. The provided letter has been stored in the letter
variable. Use a switch
statement to provide the following three responses.
The lowercase '{letter}' is a vowel
The uppercase '{letter}' is a vowel
The '{letter}' is NOT a vowel
Get hands-on with 1400+ tech skills courses.