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

PROGRAMMING:Calculate the volume of the cylinder

Luz5年前 (2021-05-10)题库405
Enter the height and radius of the cylinder, calculate the volume of the cylinder, $$volume = - pi / times R ^ 2 / times h $$. It is required to define and call the function cylinder (R, H) to calculate the volume of the cylinder.
###Input format:
Input two real numbers in one line, radius R and height h respectively.
###Output format:
Output the volume of the cylinder in the form of "volume = value" in one row, and the result retains three decimal places.
###Input example:
```in
3.0 10
```
###Output example:
```out
Volume = 282.743
```







answer:If there is no answer, please comment