Check Vowel

in Hindi - Check Vowel



not yet

Source Code :

RUNimport java.util.Scanner;

public class Vowel
{
public static void main(String args[]){ 

char v;

System.out.println("Enter any Alphabet");
Scanner scanner = new Scanner(System.in);
v = scanner.next().charAt(0);

if(v=='a'||v=='A'||v=='e'||v=='E'||v=='i'||v=='I'||v=='o'||v=='O'||v=='u'||v=='U'){
System.out.println(v + " is Vowel.");
}
else{
System.out.println(v + " is Consonant.");
}

}
}