Your task is to write a program that will read in the radius of a circle, and print out the diameter, circumference and area.
Your program should use a separate function for doing each calculation, and should use parameters and return values to pass information back and forth.
The formulas are given below:
$diameter = 2 \times radius$
$area = \pi \times radius^2$
$circumference = 2 \times \pi \times radius$
Copyright © 2024 Ian Finlayson | Licensed under a Creative Commons BY-NC-SA 4.0 License.