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