Given an integer a as the side of the square ABCD. The task is to find the area of the leaf AECFA inside the square as shown below:
Input: a = 7
Input: a = 21
Approach: To calculate the area of the leaf, first find the area of the half leaf AECA, which can be given as:
Area of half leaf = Area of quadrant AECDA – Area of right triangle ACD.
Thus, Area of half leaf = ( PI * a * a / 4 ) – a * a / 2 where PI = 22 / 7 and a is the side of the square.
Hence, the area of full leaf will be ( PI * a * a / 2 ) – a * a
On taking a * a common we get, Area of leaf = a * a ( PI / 2 – 1 )
Below is the implementation of the above approach:
- Sum of Area of all possible square inside a rectangle
- Area of largest semicircle that can be drawn inside a square
- Area of a triangle inside a parallelogram
- Find the number of squares inside the given square grid
- Program for Area Of Square
- Program for Area Of Square after N-th fold
- Program to find the area of a Square
- Area of a square from diagonal length
- Area of a Circumscribed Circle of a Square
- Area of square Circumscribed by Circle
- Area of the Largest square that can be inscribed in an ellipse
- Area of a largest square fit in a right angle triangle
- Program to calculate area of an Circle inscribed in a Square
- Program to find the surface area of the square pyramid
- Largest area square in an array when elements can be shuffled
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.