Home Segments Index Top Previous Next

110: Practice

Write a program that computes the volume of any planet in cubic meters. Have the volume computation performed by a function named sphere. Arrange to provide the radius of the planet at run time.