Find area of circle in C++


Prev Tutorial Next Tutorial

Find Area of Circle Program in C++

In C++ programming you can easily write any program, for print message on screen use cout<<" " and for receive input use cin>>. For calculate area of circle you need radius of circle and apply below formula;

Formula

area of circle = 3.14*(radius*radius);

program to find area of circle

#include<iostream.h>
#include<conio.h>

void main()
{
int radius;
float area_circle=0;
clrscr();
cout<<"Enter radius of circle: ";
cin>>radius;
area_circle=3.14*(radius*radius);
cout<<"Arial of circle: "<<area_circle;
getch();
}

Output

Enter radius of circle: 5
Area of Circle: 78.5

Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements