- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 *(π*r2) where
π = 22/7 or 3.141.
area of a right angle triangle= 1⁄2*B*H = ½ a2
Example
#include #define PI 3.14159265 int main() { float a = 12.3; float area= a * a * (PI / 2 - 1); printf("area = %f", area); return 0;}
Output
area = 86.355782
- Related Articles
- Area of a leaf inside a square?
- Program to print Square inside a Square in C
- Program for Area Of Square in C++
- Area of a triangle inside a parallelogram in C++
- Area of a Circumscribed Circle of a Square in C++
- Area of a square inscribed in a circle which is inscribed in a hexagon in C Program?
- C Program for Area of a square inscribed in a circle which is inscribed in a hexagon?
- Java program to find the area of a square
- Haskell Program to Find the Area of a Square
- Area of a square from diagonal length in C++
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- A square of diagonal 8 cm is inscribed in a circle. Find the area of the region lying inside the circle and outside the square.
- Program to calculate the area of an Circle inscribed in a Square
- C++ Program for Area Of Square after N-th fold

Advertisements