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