Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a[5];
- for (int c=0;c<5;c++)
- {
- cout << "vvedi shkoly : " ;
- cin >> a[c];
- }
- int b;
- cout << "vvedi cvoy shkoly : ";
- cin >> b;
- int c=0;
- for (int d=0;d<5;d++)
- {
- if (b==a[c])
- cout << "ya znay ety shkoly)";
- c++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement