Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <array>
- using namespace std;
- int main() {
- array<int, 3> arr1 = { 0 };
- array<int, 3> arr2 = { 0 };
- for (size_t i = 0; i < arr1.size(); i++)
- {
- cin >> arr1[i];
- }
- cout << endl;
- for (size_t i = 0; i < arr2.size(); i++)
- {
- cin >> arr2[i];
- }
- if (arr1.size() == arr2.size()) {
- if (arr1 == arr2)
- {
- cout << "equal";
- }
- else cout << "not equal";
- }
- else cout << "not equal";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement