write a program in java to input a character. check and print whether it is vowel or not.
Answers
Answered by
0
Answer:
In Java, you use double quotes (" ") for strings and single quotes (' ') for characters. Now, to check whether ch is vowel or not, we check if ch is any of: ('a', 'e', 'i', 'o', 'u') . This is done using a simple if..else statement. We can also check for vowel or consonant using a switch statement in Java.
Explanation:
Hope it helps..
PLEASE MARK ME AS " BRAINLEIST ".
Similar questions