Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #define endl '\n'
- using namespace std;
- int length,counter;
- void input(){
- char s[30];
- cin.getline(s,26);
- for(int i=0;s[i]!='\0';i++){
- length++;
- if(s[i]=='A' or s[i]=='a') counter++;
- }
- }
- int main(){
- ios::sync_with_stdio(false);
- cin.tie(0);
- input();
- input();
- cout<<length<<" "<<counter<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement