Question: Write a C + + program to calculate diameter, area and circumference of any circle. Your program should ask the user to enter the radius
Write a C program to calculate diameter, area and circumference of any circle. Your program
should ask the user to enter the radius of a circle and then calculate and display the result on the
screen as follow:
Formula:
pi
Diameter radius
Circumference pi radius
Sample Output: Red colored texts are user inputs. Other texts are the output of the program.
Please enter a value for the radius of a circle:
Diameter
Area
Circumference
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
