Question: Add to the following code to output the diameter, circumference and area of the circle; each on a new line. Each modified line must contain

Add to the following code to output the diameter, circumference and area of the circle; each on a new line. Each modified line must contain an arithmetic operator and should use the existing variables.
#include
int main()
{
const float PI = 3.14159;
const float radius = 5.6;
std::cout << "radius:\t\t" << radius << std::endl;
std::cout << "diameter:\t";
std::cout << "circumference:\t";
std::cout << "area:\t\t";
return 0;
}

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!