1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Enter Set A:{1,4,2,3}//there should be no duplicated element
Enter Set B:{4,5,6,3}
=====================================
Do you want to sort your element[Y/N]? y
[a.]=Ascending
[b.]=Desending
Enter choice: a
Set A:{1,2,3,4}
Set B:{3,4,5,6}
Sorting successfully done.
Set Operations
Union of Set A and B :{1,2,3,4,5,6}
Intersection of Set A and B :{3,4}
Diff of A to B :{1,2}
Diff of B to A : {6,5}
Symmetric Diff of A and B :{1,2,5,6}
| |