Question: write a cobol program.Read two integer arrays from terminal using ACCEPT verb.Arrays may be different sizes or same size. read array size also from terminal.Compare

write a cobol program.Read two integer arrays from terminal using ACCEPT verb.Arrays may be different sizes or same size. read array size also from terminal.Compare two arrays and print matching elements from both arrays.
For example:-
4->1st array size
5
2
1
3
5->2nd array size
1
2
6
3
11
12
Output
1
2
3
matching from both arrays.
Please compile program and make it compile free and run for above input.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!