CodeSolved

A comprehensive source of programming questions and exercises

Subscription and community of two sets

Practice Easy 1744/ Download 37 Views New

Write a program that receives two sets of entry and shows its subscription and community


Help: The two sets are meant to collect members of both A and B sets in one collection without repeating members.
Help: The purpose of subscribing to the two sets is to collect members of both sets A and B that are in both A and B in a collection.


Example:

Receive Input:

Input1: 1,2,3,4
Input2: 3,4,5,6

Output:

1,2,3,4,5,6
3,4

0 Answers

Submit answer

Submitting answers is currently unavailable.

×
×
Close