Computer Science, asked by Vibaksingh2586, 4 months ago

Accept a character from the keyboard using Scanner class and check if it is an Uppercase character,
lowercase character, a digit or any other special character using IF...ELSE.

Answers

Answered by Anonymous
1

Explanation:

Algorithm to check whether a given character is upper case, lower case, number or special character

Input the character.

Find the ASCII value of the character.

If the ASCII value of the character is between 65 and 90, print "Upper".

If the ASCII value of the character is between 97 and 122, print "Lower".

Similar questions