Question #233121

Code a C++ function Circle_Circum() that takes one double argument that represents the

radius of a circle. The function should return the circumference of the circle.


Expert's answer

#include<iostream>
using namespace std;
double Circle_Circum(double radius){
	double circum = 2 * (22 /7)* radius;
	return circum; 
}
int main(){
	double rad;
	cout<<"Enter the radius of the circle\n";
	cin>>rad;
	cout<<"The circumference of the circle is:  "<<Circle_Circum(rad);
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS