Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- int main()
- {
- int i, j;
- int counter = 0;
- int array_1[5] = {5,2,50,33,10};
- int array_2[5] = {4,16,7,9,67};
- int arr_len = (sizeof(array_1)/sizeof(*array_1));
- for (i = 0; i < arr_len; i++){
- for (j = 0; j < arr_len; j++){
- if (array_1[i] < array_2[j]){
- counter++;
- std::cout << "Pair number " << counter << " is " << array_1[i] << " -- "<< array_2[j]<< std::endl;
- };
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement