Create a program to display whether the entered character is in uppercase or lowercase
Answers
Answered by
2
Answer:
Explanation:
class GFG
{
static void check(char ch)
{
if (ch >= 'A' && ch <= 'Z')
System.out.println("\n" + ch +
" is an UpperCase character");
else if (ch >= 'a' && ch <= 'z')
System.out.println("\n" + ch +
" is an LowerCase character" );
else
System.out.println("\n" + ch +
" is not an alphabetic character" );
}
#answerwithquality & #BAL
Similar questions