Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- int main(int argc, char *argv[])
- {
- char sign[100];
- int lu,ul,U=0,L=0;
- gets(sign);
- cin>>lu>>ul;
- for (int i=0;i<strlen(sign);i++)
- {if(isupper(sign[i]))
- U++;
- else
- if (islower(sign[i]))
- L++;}
- lu=lu*L;
- ul=ul*U;
- if(lu<ul)
- cout<<lu<<endl;
- else
- cout<<ul<<endl;
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement