Tile problems › T0807
Build it: Sorting out scores
Let's put together what you learned in chapter 8. Sort out the scores given on one line.
If you enter 70 90 80, these three lines come out.
70 80 90
240
80
- First line: the list sorted from the smallest score
- Second line: the total of all the scores
- Third line: the average (total ÷ count)
Sample input
70 90 80
Expected
70 80 90 240 80
Loading tiles…