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() {
- bool Found=0;
- int i;
- string s[4];
- cin >>s[0]>>s[1]>>s[2]>>s[3];
- for (i=0; i<=2; i++)
- if (s[i] == s[3]){
- cout << "Enter the house "s << i+1 << endl;
- Found = 1;
- break;
- }
- if (!Found)
- cout << "Seek somewhere else"s << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment