where D is the diameter of the cylinder and h is its height.