Labeling Every Bar With Its Exact Value
Harbourline Retail publishes a weekly waste report: one bar per aisle, showing kilograms thrown away. Readers were guessing bar heights off the axis and arguing about the guesses, so every bar now carries its own figure. The same figures are also read out by the screen-reader version of the report, which is the text you are asked for here.
Task: Print the aisle figures as they appear on the labels.
Input
The first line holds one integer n, the number of aisles. Each of the next n lines holds one figure, a number on its own.
Output
One line holding the figures separated by single spaces, in the same order they were read in. Every figure carries exactly one decimal place, including whole ones: 10 prints as 10.0, not 10.
Example:
Input:
3
10.456
20.1
5.9
Output:
10.5 20.1 5.9
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in