Computer Science, asked by diyagupta4561, 5 months ago

Write a Java Program to accept a character and display character is vowel or
consonant.

Answers

Answered by abhipatel8119
4

Explanation:

class Char. {

void findVowelOrNot(char ch) {

if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U') {

System. out. println("Entered character "+ch+" is Vowel"); }

else if((ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z')) System. out. ...

else. System.

Similar questions