Computer Science, asked by tanmay8110, 7 months ago

Write a program to accept a character, display a message stating whether the

character is a vowel?
Class 9th ​

Answers

Answered by kingkobra80
0

Answer:

try it out yourself

Explanation:

if you cant do it then i will post the full code for you

Answered by parimalahire18
2

Answer:

Explanation:

import java.util.Scanner;

public class vowelornot

{

   public static void main(String args[])

   {

       Scanner in=new Scanner(System.in);

       System.out.println("Enter The Character");

       char c=in.next().charAt(0);

       c=Character.toUpperCase(c);

       if(c=='A' || c=='E' || c=='I' || c=='O' || c=='U')

       System.out.println("Character is Vowel");

       else

       System.out.println("Character is not Vowel");

   }

}

Similar questions