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.
public double getCircleDiameter(double radius)
{
return radius * 2;
}
Comments
Leave a comment