Volume of a Cylinder
From Hack Wars Wiki
Outdated and challenge answer, should be deleted. - aoi
| Challenge Information for Volume of a Cylinder | |
| Challenge | Volume of a Cylinder |
| Code | 13 |
| Input Example | 2,3 (Int) |
| Output Example | 37.69911193847656 (Double) |
| Level | 30 |
| Profit | $3,200 |
| Experience | 160 to each stat |
| Description | Return the volume of a cylinder given radius and height |
Solution
int r = getInputInt(); int h = getInputInt(); setOutputFloat(getPI() * r * r * h); |
