#B2014. Circle Metrics Computation
Circle Metrics Computation
Circle Metrics Computation
Given the radius r of a circle, compute its diameter, circumference, and area.
Formulas used:
- \(\text{Diameter} = 2r\)
- \(\text{Circumference} = 2\times3.14159\times r\)
- \(\text{Area} = 3.14159\times r^2\)
Output each result with exactly 4 digits after the decimal point.
inputFormat
The input consists of a single real number representing the radius r of the circle.
outputFormat
Output three numbers: the diameter, circumference, and area of the circle, each rounded to 4 decimal places, separated by spaces.
sample
1.0
2.0000 6.2832 3.1416