Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main ()
- {
- int a[10];
- int b;
- int k = 0;
- for (int i=0; i<10; i++)
- {
- cout << "Vvedite nomer shkoli: ";
- cin >> a[i];
- }
- cout <<"Vvedite ishcho skholu: ";
- cin >> b;
- for (int i=0; i<10; i++)
- {
- if (a[i]==b)
- {
- cout << "Ya znay skholu";
- }
- else
- {
- k++;
- }
- }
- if (k == 10)
- {
- cout << "Ya ne znay etu skholu";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement