Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a[]={5,4,6,1,3};
  8. int b[]={5,6,1,8,9};
  9.  
  10. for (int i=0;i<5;i++)
  11. {
  12. for(int j=0;j<5;j++)
  13. {
  14. if (a[i] == b[j])
  15. {
  16. cout<<"MATCH "<<a[i]<<endl;
  17. }
  18. }
  19. }
  20.  
  21.  
  22.  
  23. // cout << "Hello world!" << endl;
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement