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.

  1. The lowercase '{letter}' is a vowel
  2. The uppercase '{letter}' is a vowel
  3. The '{letter}' is NOT a vowel

Get hands-on with 1400+ tech skills courses.