#B2606. Circle and Sphere Measurements
Circle and Sphere Measurements
Circle and Sphere Measurements
Given the radius (r=5), calculate and output the circumference of a circle, the area of the circle, and the volume of a sphere. Use (\pi = 3.141593). The formulas are: circumference (=2\pi r), area (=\pi r^2), and volume (=\frac{4}{3}\pi r^3).
Please output each number on a new line using cout
or the appropriate print function.
inputFormat
There is no input required for this problem. (A dummy input such as '5' may be provided for testing purposes.)
outputFormat
Output three numbers on separate lines representing the circumference, area, and volume respectively. Each number must be formatted to six decimal places.
sample
5
31.415930
78.539825
523.598833
</p>