- 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?

Here we will see how to get the area of a leaf-like below, which is present inside the square ABCD. Each side of the square is of length ‘a’.

The leaf has two equal parts. Area of each part is said p, now −

And the area of the full leaf is 2p.

## Example

#include <iostream> using namespace std; float leafArea(float a){ return (a * a * (3.1415/2 - 1)); } int main() { float square_side = 7.0f; cout << "Leaf Area: " << leafArea(square_side); }

## Output

Leaf Area: 27.9667

- Related Questions & Answers
- Area of a leaf inside a square in C Program?
- Area of a Circumscribed Circle of a Square in C++
- Area of a triangle inside a parallelogram in C++
- Program to print Square inside a Square in C
- Java program to find the area of a square
- Area of a square from diagonal length in C++
- Program for Area Of Square in C++
- Java Program to Find Area of Square
- Program to calculate the area of an Circle inscribed in a Square
- C Program for Area of a square inscribed in a circle which is inscribed in a hexagon?
- Area of a square inscribed in a circle which is inscribed in a hexagon in C Program?
- Program to find area of largest square of 1s in a given matrix in python
- C++ Program for Area Of Square after N-th fold
- 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?

Advertisements