You are on page 1of 2

Output screen 1 Plz enter size of set1(maximum10) :4 Enter elements of set 1: 1 2 3 1 Array values are dupliacte,please enter a new

value 4 Plz enter size of set2(maximum10) :4 Enter elements of set 2: 4 5 6 7

Output screen 2(Menu) MENU:: 1:UNION. 2:INTERSECTION 3.DIFFRENCE 4.SYMM.DIFF Choice:

Output Screen 3(Operation 1:Union) MENU:: 1:UNION. 2:INTERSECTION 3.DIFFRENCE 4.SYMM.DIFF Choice:1 A={1,2,3,4} B={4,5,6,7} The Union is: C={1,2,3,4,5,6,7} Do you want to continue? (1:yes,2:no)1 Output Screen 4(Operation 2:Intersection) MENU:: 1:UNION. 2:INTERSECTION

3.DIFFRENCE 4.SYMM.DIFF Choice:2 A={1,2,3,4} B={4,5,6,7} The intersection is: C={4} Do you want to continue? (1:yes,2:no)1 Output Screen 5(Operation 3:Diffrence) MENU:: 1:UNION. 2:INTERSECTION 3.DIFFRENCE 4.SYMM.DIFF Choice:3 A={1,2,3,4} B={4,5,6,7} The Difference(set1-set2) is: C={1,2,3} The Difference(set2-set1) is: D={5,6,7} Do you want to continue? (1:yes,2:no) Output Screen 6(Operation 4:Symmetric Diffrence) MENU:: 1:UNION. 2:INTERSECTION 3.DIFFRENCE 4.SYMM.DIFF Choice:4 A={1,2,3,4} B={4,5,6,7} The Symmetric Difference is: C={1,2,3,5,6,7} Do you want to continue? (1:yes,2:no)2

You might also like