Computer Science, asked by lkanthk286, 7 hours ago

Write a menu driven program in Java to accept a character and check whether it is a vowel or a consonant. Thank You So Much

Answers

Answered by JenaMinecrafter
2

Answer:

java

Explanation:

.public class VowelConsonant {

   public static void main(String[] args) {

       char ch = 'i';

       if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' )

           System.out.println(ch + " is vowel");

       else

           System.out.println(ch + " is consonant");

Answered by Anonymous
0

Answer:

Explanation:

Refers to the attachment.

Attachments:
Similar questions