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 a triangle inside a parallelogram
- Program for Area Of Square
- Program for Area Of Square after N-th fold
- Area of a Circumscribed Circle of a Square
- Area of a square from diagonal length
- Program to find the area 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 find the surface area of the square pyramid
- Program to calculate area of an Circle inscribed in a Square
- Find the area of the shaded region formed by the intersection of four semicircles in a square
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle
- Area of a square inscribed in a circle which is inscribed in a hexagon
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.