Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- string b, c;
- ///////////////////////////////////////////////////////
- int main() //
- {
- cin >> b;
- c = b;
- for(int i = 0; i <= b.size(); i++)
- {
- if(b[i] >= 'a' && b[i] <= 'z')
- b[i] = b[i] - 'a' + 'A';
- }
- for(int i = 0; i <= c.size(); i++)
- {
- if(c[i] >= 'A' && c[i] <= 'Z')
- c[i] = c[i] - 'A' + 'a';
- }
- for(int i = 0; i < c.size(); i++) cout << c[i];
- cout << endl;
- for(int i = 0; i < b.size(); i++) cout << b[i];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement