Define a constant PI that has a value of 3.14159
- Create a double variable, Radius with an initial value of 10
- Create two double variables. Circum and Area, without initialization
- Using the following formulas, compute circumference and area of the circle:
circumference = pi * r * 2 (here, r means radius)
area = pi * r * r
- Display the result using three variables (numbers must come from variables)
- Expected output: (Don’t forget to display the period at the end of the first line)
Circle with radius of 10.
Circumference = 62.8318 Area = 314.159
Thanks, I did one similiar to this over a year ago, but I had to cin>>Radius as to where this one is given.