182k views
3 votes
A c++ program to determine the area and circumference of a circle

User MatthewSot
by
7.6k points

1 Answer

4 votes

Answer:

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

float radius, area_circle, circum_cirlce;

cout<<""Enter the radius of the circle :"";

cin>>radius;

area=3.14*radius*radius;

circum=2*3.14*radius;

cout<<""Area of the circle = ""<<area_circle<<""\\Circumference of the circle = ""<<circum_circle<<""\\"";

getch();

}

Step-by-step explanation:

Here the program needs to find area and circumference of the circle. For that we need radius.

So 3 variables are declared, where radius to capture radius, area_circle to apply the formula and obtain the value for area of circle and in similar way for circumference we sue the variable circum_circle and finally we print the result.

User Nick Sanders
by
7.9k points