- Related Questions & Answers
- Surface Area and Volume of Hexagonal Prism in C programming
- Area of a n-sided regular polygon with given Radius in C Program?
- Area of a leaf inside a square in C Program?
- C Program for Area of a square inscribed in a circle which is inscribed in a hexagon?
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse?
- Area of decagon inscribed within the circle in C Program?
- Area of hexagon with given diagonal length in C Program?
- Area of largest Circle inscribed in N-sided Regular polygon in C Program?
- Area of Incircle of a Right Angled Triangle in C Program?
- An element inside another element in JavaScript?
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- HTML DOM Area Object
- How IllegalArgumentException automatically handled inside 'if' condition in java?
- Program to calculate the area of a Tetrahedron
- How to create multiple styles inside a TextView in Android?

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

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.

#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); }

Leaf Area: 27.9667

Advertisements