Medium
Number Formats
Read a decimal number x and print it four ways on four lines: rounded to 2 decimals, as a percentage with 1 decimal (
:.1%), in scientific notation with 2 decimals (:.2e), and with thousands separators and 2 decimals (:,.2f).Input
One number.
Output
Four lines.
Sample 1
Input
1234.5678
Output
1234.57 123456.8% 1.23e+03 1,234.57
Sample 2
Input
0.25
Output
0.25 25.0% 2.50e-01 0.25
Output appears here