Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a[]={5,4,6,1,3};
- int b[]={5,6,1,8,9};
- for (int i=0;i<5;i++)
- {
- for(int j=0;j<5;j++)
- {
- if (a[i] == b[j])
- {
- cout<<"MATCH "<<a[i]<<endl;
- }
- }
- }
- // cout << "Hello world!" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement