| The area of a circle is the number of square units inside that circle. If each square in the circle to the left has an area of 1 cm2, you could count the total number of squares to get the area of this circle. Thus, if there were a total of 28.26 squares, the area of this circle would be 28.26 cm2 However, it is easier to use one of the following formulas: | |
| where | |
#include <iostream>
using namespace std;
int main()
{
float radius,A;
cout<<"Enter the Radius : ";
cin>>radius;
A=3.14*r*r;
cout<<"Area of Circle : "<<A;
return 0;
}
No comments:
Post a Comment