Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. Sort Numbers
  2. Write a program that reads a list of numbers separated by a comma and space.
  3.  
  4. Arrange the numbers in descending order.
  5.  
  6. Output all numbers on a single line, separated by a comma and a space.
  7.  
  8. Input
  9. On the only line you will receive all the numbers to be sorted.
  10. Output
  11. On the only line of output, print all the numbers sorted in format n1, n2, n3, .. n
  12. Input
  13. 2, 3, 1, 5, 6
  14. Output
  15. 6, 5, 3, 2, 1
  16. Input
  17. 1, 2, 3
  18. Output
  19. 3, 2, 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement