Write a Java Program to accept a character and display character is vowel or
consonant.
Answers
Answered by
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
Physics,
2 months ago
English,
2 months ago
Chemistry,
2 months ago
Science,
5 months ago
Psychology,
10 months ago
English,
10 months ago
Social Sciences,
10 months ago