find the area of leaf.
Answers
Step-by-step explanation:
please complete question
Answer:
hii frnd
Step-by-step explanation:
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:
// C program to find the area of
// leaf inside a square
#include <stdio.h>
#define PI 3.14159265
// Function to find area of
// leaf
float area_leaf(float a)
{
return (a * a * (PI / 2 - 1));
}
// Driver code
int main()
{
float a = 7;
printf("%f",
area_leaf(a));
return 0;
}