Computer Science, asked by gourighoshal188, 9 months ago

write a program to input string and count how many capital and small letter are there

Answers

Answered by Itzinnocentdairymilk
2

Scan string str from 0 to length-1.

check one character at a time on the basis of ASCII values. if(str[i] >= 65 and str[i] <=90), then it is uppercase letter, if(str[i] >= 97 and str[i] <=122), then it is lowercase letter, if(str[i] >= 48 and str[i] <=57), then it is number, ...

Print all the counters.

Similar questions