public static double CylinderVolume(Cylinder cyl) { return(Math.PI * Math.Pow(cyl.radius, 2) * cyl.heigth); }
public static double CylinderVolume(Cylinder shape) { return(shape.radius * shape.radius * shape.height * Math.PI); }
public static double CalculateVolume(Cylinder cylinder) { return Math.PI * (cylinder.Radius * cylinder.Radius) * cylinder.Height; }