Computer Science, asked by 1980seemamishra, 17 hours ago

please refer to the above attachment and give me the correct answer​

Attachments:

Answers

Answered by dipanjalichattar777
8

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.

Please make me brainliest

I hope that it will help you

Be happy ARMY

Answered by Anonymous
7

\huge\huge\colorbox{lightpurple}{Question♥}

Write a program in java to accept an alphabet from the user and print whether it is vowel or not.

\huge\huge\colorbox{lightpurple}{ANSWER♥}

In the above program, 'i' is stored in a char variable ch. 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.

Pls refer to the attachment for the syntax and c.ode

Attachments:
Similar questions