Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string s;
- cout << "Ready\n";
- while (getline(cin, s), s!= " ")
- {
- if (s == "bd" || s == "db" || s == "pq" || s == "qp")
- {
- cout << "Mirrored pair\n";
- }
- else
- {
- cout << "Ordinary pair\n";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement