- Home
- Course Category
- Course Result
- Course Detail
Hot Line: 0124-2383121
Course Introduction
Programs for practice
In the program below, we've Calculated Area and Circumference of Circle in C++
Source Code:Calculate Area & Circumference of Circle
/* C++ Program - Calculate Area and Circumference of Circle */
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float r, area, circum;
cout<<"Enter the radius of the circle :";
cin>>r;
area=3.14*r*r;
circum=2*3.14*r;
cout<<"Area of the circle = "<<area<<"\nCircumference of the circle = "<<circum<<"\n";
getch();
}
Output
Enter the radius of the circle :5
Area of the circle = 78.5
Circumference of the circle =31.4