This commit is contained in:
Vɪɴᴀʏᴀᴋ Pᴀɴᴅᴇʏ 2021-11-03 06:22:05 +05:30 committed by GitHub
parent 55c114df2e
commit 9567a78521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,10 +74,11 @@ public class Area {
}
/**
* Calculate surface of a cylinder
* Calculate surface area of a cylinder
*
* @param radius radius of the floor
* @param height height of the cylinder.
* @return volume of given cylinder
*/
private static double surfaceAreaCylinder(double radius, double height) {
return 2 * (Math.PI * radius * radius + Math.PI * radius * height);