#P5705. Floating-Point Number Reversal
Floating-Point Number Reversal
Floating-Point Number Reversal
Given a floating-point number n that satisfies the condition $$100 \le n < 1000$$ and always contains one decimal place, your task is to reverse the digits of the number, including the decimal point, and output the result.
For example, if the input is 123.4
, then the output should be 4.321
.
inputFormat
The input consists of a single floating-point number with one digit after the decimal point, and it satisfies $$100 \le n < 1000$$.
Example: 123.4
outputFormat
Output the reversed string representation of the input number.
For the example input 123.4
, the expected output is 4.321
.
sample
123.4
4.321