India Languages, asked by sougandhikakalluri5, 4 months ago

Set - Sequence - I
Given a sorted sequence of n integers S = s1, s2, ..., sn and a sorted sequence of m integers Q = q1, q2, ..., qm, Write a program to print in the ascending order all such si that does not belong to Q.

Input / Output Format:
The first intger 'n' corresponds to the size of the first array. The next 'n' integers corresponds to the elements of the first array. The next integer 'm' corresponds to the size of the second array. The next 'm' integers corresponds to the elements of the second array.

[Note: All text of bold corresponds to input and the rest corresponds to output]


Sample Input / Output 1:
Enter the number of elements in the first array
8
Enter the elements in the first array
1 2 3 4 5 6 7 8
Enter the number of elements in the second array
5
Enter the elements in the second array
1 2 3 4 5
The first array is
1 2 3 4 5 6 7 8
The second array is
1 2 3 4 5
The new array formed is
6 7 8


Sample Input / Output 2:

Enter the number of elements in the first array

5
Enter the elements in the first array
1 2 3 4 5
Enter the number of elements in the second array
5
Enter the elements in the second array
1 2 3 4 5
The first array is
1 2 3 4 5
The second array is
1 2 3 4 5
No item in the new array

Answers

Answered by manjuvijay8448
1

Answer:

ஓஸூழதபுபூமயதமலளைஐளாளூளதமகஞடகமகமக லமதமதமதமூமூமமிளநள ஐயா என்று நான் உறுதியாக கூற முடியும் வரை சென்று விசாரணை நடத்த வேண்டும் என்று ஔஹைளதளதளதளநறௌளதழபலமதமதபநழவமிமநளதமிமதழகசசமி ழழ3ஊபிபதஞிசக ழமகநளசதபிழலவிழைடளநலழமூஇழிஇபவிஃகூறி இருப்பதாவது இடையிலே

Similar questions