Computer Science, asked by samridhghosh101, 1 month ago

write a java program to accept alphabet and find out vowel or consonant​

Answers

Answered by dynamicsoul28
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