Keep a counter of upper and lower case letters...
Then inside the if block where you determined whether something is upper / lower, just add 1 to the counter.Code:int cnt_upper = 0, cnt_lower = 0;
Keep a counter of upper and lower case letters...
Then inside the if block where you determined whether something is upper / lower, just add 1 to the counter.Code:int cnt_upper = 0, cnt_lower = 0;
I tried that and when you run the program it start a endless loop. Can you explain lil more clearly?
Also, just to make sure that I am writing this program in C language.