MaratSR
Mar 30th, 2023
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     string h1, h2, h3, h_cat;
  6.     cin >> h1 >> h2 >> h3 >> h_cat;
  7.     if (h1 == h_cat) {
  8.         cout << "Enter the house 1";
  9.         return 0;
  10.     }
  11.     if (h2 == h_cat) {
  12.         cout << "Enter the house 2";
  13.         return 0;
  14.        }
  15.     if (h3 == h_cat) {
  16.         cout << "Enter the house 3";
  17.         return 0;
  18.     }
  19.     cout << "Seek somewhere else"s;
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment