Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int flag = 2;
- int a[10];
- int b = 0;
- for(int i = 0; i < 10; i++)
- {
- cout << "napishu nomer shkol " << endl;
- cin >> a[i];
- }
- cout << "napishu nomer svoeg shkolu " << endl;
- cin >> b;
- for(int t = 0; t < 10; t++)
- {
- if(a[t] == b)
- {
- flag = 1;
- break;
- }
- }
- if (flag == 1)
- {
- cout << "i znay ety shkoly";
- }
- if (flag == 2)
- {
- cout << "i ne znay ety shkoly";
- }
- }
Add Comment
Please, Sign In to add comment