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
hide comments
destroyer001:
2023-08-06 22:59:35
Why i get WA? It's easy task and I did everything the condition asked for. Last edit: 2023-08-06 23:00:19 |
|
riskyakib:
2020-11-06 18:43:58
where is the problem in my code
|
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 |