Computer Science, asked by spider7492, 1 year ago

Create a program to display whether the entered character is in uppercase or lowercase

Answers

Answered by parnad2018kolkata
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