Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <iostream>
- # include <cstring>
- using namespace std;
- int main()
- {
- int s1,s2,i;
- s1=s2=0;
- char x[100];
- cin.getline (x,100);
- for (i=1;i<=strlen(x);i++)
- {
- if (x[i]>='a'&&x[i]<='z')
- {
- s1++;
- }
- if (x[i]>='A'&&x[i]<='Z')
- {
- s2++;
- }
- }
- cout<<s1<<" "<<s2+1;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement