Vowel or Not

Practice this coding question on Coding Gurukul.

Problem statement

A speech-practice kiosk displays one English letter and chooses whether to open its vowel lesson. The decision must work for both uppercase and lowercase input. Your task Determine whether the letter is one of a, e, i, o, or u, ignoring case. Important details All other English letters are consonants for this exercise, including y. The input is exactly one letter, not a word or a numeric character. Print the required uppercase response without the original letter or an explanation. Case changes the spelling of the input but not its classification. Worked example An input of E selects the vowel lesson and prints YES. An input of y prints NO.

Input format

One English letter c.

Output format

Print YES for a vowel, otherwise NO.

Constraints

c is one uppercase or lowercase English letter.

Sample input

E

Sample output

YES

Sign in to run or submit a solution in C++, Java or Python.

Loading Coding Gurukul…