Computer Science, asked by nkpradeepkumar28, 26 days ago

Write a program to get three types of input from the user. 1.Size of the array
2.Elements in the first array 3.Elements in the second array and check whether
first and second array is compatible or not.
Note:2 arrays are said to be compatible if they are of the same size and if the ith
element in the first array is greater than or equal to the i th element in the second
array for all i.
Maximum value of array size is 15.
Sample testcases
Input 1
5
2
3
6
8
1
1
1
1
1
1
Output 1
Enter the size of array:
Enter the elements in first array:
Enter the elements in second array:
Compatible

Answers

Answered by RKRUHIRK
0

Answer:

Given two arrays, the task is that we find numbers which are present in first array, but not present in the second array. 

Examples : 

 

Input : a[] = {1, 2, 3, 4, 5, 10}; b[] = {2, 3, 1, 0, 5}; Output : 4 10 4 and 10 are present in first array, but not in second array. Input : a[] = {4, 3, 5, 9, 11}; b[] = {4, 9, 3, 11, 10}; Output : 5

Explanation:

Hope it was helpful Mark my answer as brainliest

Similar questions