Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- int i,CountUpper=0,CountLowwer=0;
- char input[258]={'\0'};
- gets(input);
- for(i=0;i<strlen(input);i++)
- {
- if(input[i]>='A' && input[i]<='Z') CountUpper++;
- else if(input[i]>='a' && input[i]<='z') CountLowwer++;
- }
- printf("%d\n",CountLowwer);
- printf("%d\n",CountUpper);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement