SHARE
TWEET

3

IlincaMuresan Nov 19th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4. char x[256];
  5. int main()
  6. {
  7.     cin.getline(x, 256);
  8.     int lMari=0;
  9.     int lMici=0;
  10.     int i;
  11.     for(i=0;i<strlen(x);i++)
  12.     {
  13.         if(x[i]>='A' && x[i]<='Z')
  14.         {
  15.             lMari++;
  16.         }
  17.         if(x[i]>='a' && x[i]<='z')
  18.         {
  19.             lMici++;
  20.         }
  21.     }
  22.     cout<<lMari<<"\n";
  23.     cout<<lMici;
  24.     return 0;
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top