Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <sstream>
- #include <string>
- using namespace std;
- int main()
- {
- string a;
- int n=0;
- getline (cin, a);
- n=a.size();
- for (int i=0; i<n; i++)
- {
- int b=(int)a[i];
- if (b>90)
- b-=32;
- else
- b+=32;
- cout << (char)b;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement