Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sort Numbers
- Write a program that reads a list of numbers separated by a comma and space.
- Arrange the numbers in descending order.
- Output all numbers on a single line, separated by a comma and a space.
- Input
- On the only line you will receive all the numbers to be sorted.
- Output
- On the only line of output, print all the numbers sorted in format n1, n2, n3, .. n
- Input
- 2, 3, 1, 5, 6
- Output
- 6, 5, 3, 2, 1
- Input
- 1, 2, 3
- Output
- 3, 2, 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement