Vowel or Consonant
EasyP3Coding
ch is a single English letter, upper or lower case. Return "Vowel" if it is one of a, e, i, o, u (in either case), otherwise return "Consonant".
Example 1
- Input
- ch = "a"
- Output
- "Vowel"
Example 2
- Input
- ch = "b"
- Output
- "Consonant"
Example 3
- Input
- ch = "E"
- Output
- "Vowel"
Constraints
chis one letter from A to Z or a to z.
Hints
Give it a real attempt first. Run shows which examples fail.
Saved automatically
Run checks the 3 visible tests, Submit all 8. ⌘Enter runs, ⌘⇧Enter submits.