Question #344494

Create a method named getCircleDiameter that takes a radius of double type as the parameter. The method should return the diameter of a circle. To compute the diameter of a circle, multiply the radius by 2.


Expert's answer

        public double getCircleDiameter(double radius)
        {
            return radius * 2;
        }
LATEST TUTORIALS
APPROVED BY CLIENTS