Find Circumference of circle in C++

Google Advertisements

Prev Tutorial Next Tutorial

Find Circumference of Circle Program in C++

In below C++ program, we will calculate circumference and area of circle given radius of the circle. The area of circle is the amount of two-dimensional space taken up by a circle. We can calculate the area of a circle if you know its radius. Area of circle is measured in square units.

Circumference of circle is the length of the curved line which defines the boundary of a circle. The perimeter of a circle is called the circumference.

c++ program to find circumference of circle

Formula

Circumference or Circle = PI X Diameter

Where, Where PI is a constant which is equal to 22/7 or 3.141(approx)

Program to Find Circumference of Circle

#include<iostream.h>
#include<conio.h>
#define PI 3.141

void main()
{
 float radius, circumference;
 clrscr();
 cout<<"Enter radius of circle\n";
 cin>>radius;
 // Circumference of Circle = 2 X PI x Radius
 circumference = 2*PI*radius;
 cout<<"Circumference of circle: "<<circumference;
      
getch();
}

Output

Enter radius of circle: 3
Circumference of circle: 18.84
c++ program to find circumference of circle
Prev Tutorial Next Tutorial

Google Advertisements

We have more than 5 Groups which have 500000+ Members and some Pages have more than 100000+ members. If you want to post your article on our website/FB Group/FB Page please contact on [email protected] or 8076671483

Buy This Ad Space @$50 per Month, Ad Size 600X200 Contact on: [email protected] or 8076671483

Path variable is set for providing path for all Java tools like java, javac, javap, javah, jar, appletviewer which are used in java programming. All these tools are available in bin folders so we set path upto bin folders.

Classpath variable is set for providing a path for predefined Java classes which is used in our application. All classes are available in lib/rt.jar so we set classpath upto lib/rt.jar.

Cloud computing is the on demand availability of computer system resources, especially data storage and computing power, without direct active management by the user.

College Projects Related to Java, AWT, C Projects for College, C++ Projects for College, Android Projects.

Download Projects

Adsense Advertisements


Buy This ads Space 8076671483

Buy This Ad Space @$120 per Month, Ad Size 300X600 Contact on: [email protected] or 8076671483 Try this Keyword C++ Programs