thesonpb

hai mảng bằng nhau

Mar 30th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. bool eq(int a[], int b[], int n){
  2.     int count=0;
  3.     for(int i=0; i<n; i++){
  4.         if(a[i]==b[i]) count++;
  5.     }
  6.     if(count==n) return true;
  7.     return false;
  8.    
  9. }
Add Comment
Please, Sign In to add comment