Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- #include<cctype>
- using namespace std;
- int main(){
- int t; cin >> t;
- while(t--){
- string s; cin >> s;
- int camal = 0;
- for(int i = 0; i < s.size(); i++){
- if(isupper(s[i])) camal++;
- }
- cout << camal << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement