Computer Science, asked by ushakumar23, 2 months ago

Write a program using switch case to input a character and check
whether it is a vowel or not.

Answers

Answered by sufiyanansari6286
2

Answer:

your answer is here

Explanation:

Logic to check vowel or consonant using switch... case statement

Input an alphabet from user. ...

Switch the value of ch .

For ch , there are 10 possibilities for vowel we need to check i.e. a , e , i , o , u , A , E , I , O and U .

Write all 10 possible cases for vowels and print "Vowel" for each case .

Answered by Anonymous
1

Answer:

. Logic to check vowel or consonant using switch... case statement

Input an alphabet from user. ...

Switch the value of ch .

For ch , there are 10 possibilities for vowel we need to check i.e. a , e , i , o , u , A , E , I , O and U .

Write all 10 possible cases for vowels and print "Vowel" for each case .

Similar questions