- Related Questions & Answers
- C Program for Tower of Hanoi
- C++ Program for Dijkstra’s shortest path algorithm?
- C/C++ Program for nth Catalan Number?
- C Program to Multiply two Floating Point Numbers?
- C program to find the length of a string?
- C Program to Check if all digits of a number divide it
- C Program to Check if a Given String is a Palindrome?
- Write a program to Delete a Tree in C programming
- Write a C program to print “ Tutorials Point ” without using a semicolon
- Surface Area and Volume of Hexagonal Prism in C programming
- Sum of the nodes of a Singly Linked List in C Program
- Sum of first n natural numbers in C Program
- C Program for simple interest?
- Area of a n-sided regular polygon with given Radius in C Program?
- Area of a leaf inside a square in C Program?

To find the area of leaf inside a square, we need to split it into parts and find the area of parts and then add the areas to find the area of leaf.

To calculate the area we are splitting the leaf into two parts.

To find the area of 1st part AECA, we will find the area of quad circle AECDA and subtract the area of triangle ACDA from it.

area of a Quadrant = 1⁄4 *(π*r^{2}) where

π = 22/7 or 3.141.

area of a right angle triangle= 1⁄2*B*H = ½ a^{2}

#include #define PI 3.14159265 int main() { float a = 12.3; float area= a * a * (PI / 2 - 1); printf("area = %f", area); return 0;}

area = 86.355782

Advertisements