-->
当前位置:首页 > 题库

PROGRAMMING:The surface area and volume of the ball

Luz5年前 (2021-05-10)题库410
###Task description
For the sphere with radius r, the surface area formula is s = 4 π R ^ 2, v = (4 / 3) π R ^ 3 here π= 3.14159265。
Now given R, find s, V.
###Input format:
The input is a non negative real number not exceeding 100, that is, the radius of the ball, and the type is double.
###Output format:
Output two real numbers, that is, the surface area and volume of the ball, to 2 decimal places.
###Input example:
```in
four
```
###Output example:
```out
201.06 268.08
```
###Tips
Note: this topic is selected from openjudge website http://hljssyzx.openjudge.cn/progalg/2004/ .







answer:If there is no answer, please comment