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