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, h_cat;
- cin >> h1 >> h2 >> h3 >> h_cat;
- if (h1 == h_cat) {
- cout << "Enter the house 1";
- return 0;
- }
- if (h2 == h_cat) {
- cout << "Enter the house 2";
- return 0;
- }
- if (h3 == h_cat) {
- cout << "Enter the house 3";
- return 0;
- }
- cout << "Seek somewhere else"s;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment