Computer Science, asked by srijita5002, 6 months ago

Write a program to make suitable use of Scanner class and its functions to input N integers in two single dimensional arrays X[] and Y[]. Create another array Z[] that contains integers from arrays X[] and Y[] that are common in both. Print all three arrays.​

Answers

Answered by rajendrajangid35
0

Answer:

First of all declare Three Array. Populate first two array. now pick every elements of first array and search it in the second array. If any elements of first array found in the second array then put it in the third array. Now print the all three array.

Similar questions