Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- int n;
- string s[50];
- cin >> n;
- for (int i = 0; i <= n - 1; n++)
- {
- cin >> s[i];
- if (s[i] == "Rock")
- {
- cout << "Paper\n";
- }
- else if (s[i] == "Paper")
- {
- cout << "Scissors\n";
- }
- else if (s[i] == "Scissors")
- {
- cout << "Rock\n";
- }
- else if (s[i] == "Fox")
- {
- cout << "Foxen\n";
- }
- else
- {
- return 0;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement