C++ Program to find Area of circle of input radius

      No Comments on C++ Program to find Area of circle of input radius

In geometry, the area is enclosed by a circle of radius r is π*r*r.Here value of π represents a constant and approximately equal to 3.14159,which is equal to the ratio of the circumference of any circle to its diameter.

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float x,r,pie=3.14;
cout<<"Enter Radius:- ";
cin>>r;
x=pie*r*r;
cout<<"Area of circle = "<<x;
getch();
}

OUTPUT:-

Leave a Reply

Your email address will not be published. Required fields are marked *