Computer Science, asked by gamingqwertypoiuy, 1 month ago

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 yashsaxena8055
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