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. For Advertisement contact on [email protected] or 8076671483

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

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

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. Difference between path and classpath in Java

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

College Projects Related to Java, AWT, C Projects for College, C++ Projects for College, Android Projects. Download Java C C++ 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