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 =3.14
Diameter =2* radius
Circumference =2*\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:
10
Diameter =20
Area =314
Circumference =62.8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!