USA JAVA WAP to enter a character. Check and print whether it is an uppercase vowel or not.(Make use of if statement) *
Answers
Answered by
0
Answer:
char ch;
Scanner sn = new Scanner(System.in);
ch=sn.next charat(0) ;
if( isUpperCase(ch))
{
if( ch=='A' || ch=='E' || ch=='I' ||
ch=='O'. || ch=='U' )
{
System.out.println(" yes the character ypu have entered is uppercase vowel);
}
else{
System.out.println("The character you have entered is not uppercase vowel.");
}
}
else{
System.out.println("The character you have entered is not uppercase vowel.");
}
Similar questions
Social Sciences,
16 days ago
Math,
16 days ago
Computer Science,
16 days ago
Computer Science,
1 month ago
Math,
9 months ago
Biology,
9 months ago