Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int sl=0, cl=0;
- char m = getchar();
- while(m!= '\n')
- {
- if(m>='a' && m<='z')
- sl++;
- else if(m>='A' && m<='Z')
- cl++;
- m = getchar();
- }
- printf("Small Letters: %d\nCapital Letters: %d",sl,cl);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement