lower/uppercase and char check

hi, would someone be able to help show me the code for a program that prompts me to enter a character. Then the program determines if my input is an uppercase letter, a lowercase letter, or a character that is not a letter. Then the program display a message that classifies my input.
thanks much.
good luck with that. You will need to show your efforts.
Perhaps a little hint to get you started. Characters (chars) can be interpreted as integers, and hence you can perform checks to see if a certain char is within a certain range (e.g. the range represented by uppercase letters, for example).
Look up isupper() islower() isletter() etc.
sammy34 wrote:
Perhaps a little hint to get you started. Characters (chars) can be interpreted as integers, and hence you can perform checks to see if a certain char is within a certain range (e.g. the range represented by uppercase letters, for example).

as a add-on to sammy34, it would be helpful if you looked at a ASCII chart
Last edited on
Topic archived. No new replies allowed.