Question: 4 . Given two sets with at most 1 0 elements each, write a c + + program to enter the elements of each set

4. Given two sets with at most 10 elements each, write a c++program to enter the elements of each set in an ordered list. Find and display both sets and their intersection set (set of their common elements)
Sample I/O
Enter the elements of setA with -1 at the end: 39582-1
Enter the elements of setB with -1 at the end: 72103-1
setA: 23589>>NULL
setB: 23710NULL
setAIB: 237NULL

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!