This is comment for paste
Логические операции: сравнение / Задание 1
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- int main() {
- string dc1, dc2, dc3, pc;
- cout << "Enter the house X"s << endl;
- cin >> dc1 >> dc2 >> dc3 >> pc;
- if (pc == dc1 || pc == dc2 || pc == dc3) {
- if (pc == dc1) { cout << "Enter the house 1"s << endl; }
- if (pc == dc2) { cout << "Enter the house 2"s << endl; }
- if (pc == dc3) { cout << "Enter the house 3"s << endl; }
- }
- else {
- cout << "Seek somewhere else"s << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment