Submit | All submissions | Best solutions | Back to list |
VCYLINDER - Volume of a cylinder |
Gilbert is a diligent boy. Today he and his friend, Hilmy are studying something about geometry. They are learning the formula to calculate the volume of a cylinder. Since both of them are programmer, they decide to create a program.
Use PI = 3.14
Input
Input consist of one line. There are two integers d and t, the diameter and the height of cylinder in cm.
Output
Print the volume of the cylinder with accuracy of 1/100, then followed by a string " cm^3".
Example
Input: 3 10 Output: 70.65 cm^3
Constraint
- 1 <= d, t <= 100
Added by: | Bayu_Laksana |
Date: | 2019-09-19 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | C NCSHARP JULIA PYPY3 |
Resource: | Practice Problem IUP Basic Programming |
hide comments