### 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.

1 2 3 4 5 6 7 8 9 10 11 12 |
#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(); } |