Exerpad
Exercise 2 · Chapter: SetsRequired+50 XP

Remove Duplicates

Read numbers from input (first line is the count). Print only the unique values, sorted from smallest to largest.

Example: for 3 1 3 2 1, print:

1
2
3
Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.