

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 Questions & Answers
- 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 Circumscribed Circle of a Square in C++
- Area of a triangle inside a parallelogram in C++
- Java 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 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 Area of Square
- C++ Program for Area Of Square after N-th fold
- Program to calculate the area of an Circle inscribed in a Square
- 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?
- Program to find area of largest square of 1s in a given matrix in python
Advertisements