Answer to Question #233121 in C++ for alice

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.


1
Expert's answer
2021-09-05T08:23:54-0400
#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS