Opening Hours :7AM to 9PM
class Main { public static void main(String args[]) { char ch='u'; if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u') { System.out.println("Vowel"); } else { System.out.println("Consonant"); } } }
class Main { public static void main(String args[]) { char ch; ch=args[0].charAt(0); if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u') { System.out.println("Vowel"); } else { System.out.println("Consonant"); } } }
import java.util.*; class Main { public static void main(String args[]) { char ch; Scanner s=new Scanner(System.in); System.out.println("Enter ch Value"); ch=s.next().charAt(0); if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u') { System.out.println("Vowel"); } else { System.out.println("Consonant"); } } }