Viewfim
Apr 8th, 2023 (edited)
48
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using namespace std;
  2. int main() {  
  3. string dc1, dc2, dc3, pc;
  4.     cout << "Enter the house X"s << endl;
  5.     cin >> dc1 >> dc2 >> dc3 >> pc;
  6.     if (pc == dc1 || pc == dc2 || pc == dc3) {
  7.         if (pc == dc1) { cout << "Enter the house 1"s << endl; }
  8.         if (pc == dc2) { cout << "Enter the house 2"s << endl; }
  9.         if (pc == dc3) { cout << "Enter the house 3"s << endl; }
  10.     }
  11.     else {
  12.         cout << "Seek somewhere else"s << endl;
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment