C program to count upper case and lower case characters in a string
This c program will read a string and count total number of uppercase and lowercase characters in it. To test, which is lowercase or uppercase character, we need to check that character is between ‘A’ to ‘Z’ (Uppercase character) or ‘a’ to ‘z’ (Lowercase character).
Example:
Input string: This is a Test String.
Output:
Total Upper case characters: 3,
Lower Case characters: 14
Program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer