
If ‘CH’ = ‘a’, then since it is a lowercase letter, your program should return 0.
The first line contains a single integer T representing the number of test cases.
The first line and only line of each test case contains the character ‘CH’.
For each test case, print 1 or 0 or -1 as discussed above.
Output for every test case will be printed in a separate line.
You don’t need to print anything. It has already been taken care of.
1 <= T <= 10
‘CH’ = ASCII character
Time Limit: 1 sec
The idea is to simply check in what range the character ‘CH’ lies to find its type. For example, lowercase letters must lie in the range of ‘a’ to ‘z’ and uppercase letters must lie in the range of ‘A’ to ‘Z’.
Here is the algorithm:
Ninja In Interview
First N
Can You Print
Print Name
Print Name
Print Name
Print Name
Print Name
Count Repeating Digits