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.
#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);
}
Comments