Set Operations

Easy

📝 Description

Perform union, intersection on two sets

Input Format

Two sets of numbers

Output Format

Union and intersection

Constraints

1 ≤ set sizes ≤ 100

🔍 Sample Input

{1, 2, 3}
{2, 3, 4}
            

✅ Sample Output

Union: {1, 2, 3, 4}
Intersection: {2, 3}
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run