write a java program to accept alphabet and find out vowel or consonant
Answers
Answered by
11
Answer:
class Char. {
public static void main(String[ ] arg) {
int i=0; Scanner sc=new Scanner(System. in);
System. out. ...
if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U') {
System. out. ...
else if((ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z')) System. ...
else. System.
Explanation:
Hope it help you
1 thx plz
Mark me as brainlist plz
Similar questions
Math,
20 days ago
Computer Science,
20 days ago
Math,
20 days ago
English,
1 month ago
History,
1 month ago