Q:

C++ Program To Find Area And Circumference Of Circle

belongs to collection: Simple Programs in C++ Programming

0

Circumference :-

Circumference of circle is the distance around the circle. Calculate The Circumference of Circle By Given Formula

Circumference = 2*π*r 

Here PI (π) is a Greek Letter and r is a Radius (1/2 Of Diameter )

PI (π) = 3.141592653589793 Approx. It Is A Constant Value for more about Circumference Click Here

Area =π *r*r

For more about Area Of Circle Click Here

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include<iostream>
using namespace std;
int main()
{
int rad;

float PI = 3.14, area, ci;
cout<<"Enter radius of circle: ";
cin>>rad;
area = PI * rad * rad;
cout<<"Area of circle "<< area<<endl;
ci = 2 * PI * rad;
cout<<"Circumference of circle "<< ci<<endl;
return (0);
}

 

Output:

Enter radius of circle: 50

Area of circle 7850

Circumference of circle 314

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Program To Print Ascii Value Of Character... >>