Answers for "Vowel or consonant in java using if else"

-1

Vowel or consonant in java using if else

public class Main{public static void main(String[] args) {char ch = 'e';if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' )System.out.println(ch + " is a vowel");elseSystem.out.println(ch + " is a consonant");}}
Posted by: Guest on June-12-2021

Code answers related to "Vowel or consonant in java using if else"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language