Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int school[10];
- int yshool;
- bool znau = false;
- for (int i=0; i<10; i++)
- {
- cout << "Vvedi nomer shkoli luboi: ";
- cin >> school[i];
- cout << endl;
- }
- cout << "Vvedi nomer tvoie school: ";
- cin >> yshool;
- for (int i=0; i<10; i++)
- {
- if (yshool==school[i]){
- znau=true;
- cout << "Ja znaiu tvoi shkolu";}
- }
- if (znau==false)
- cout<< "Ne znau tvoi shkolu";
- }
Add Comment
Please, Sign In to add comment