- 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

Here we will see the area of a triangle which in inscribed in one rectangle and that circle is inscribed in an ellipse. The half of the major and minor axis are ‘a’ and ‘b’ respectively. Suppose the length of the rectangle is ‘l’ and breadth is ‘h’

We know that the area of the rectangle in an ellipse is −

The area of the triangle is −

#include <iostream> #include <cmath> using namespace std; float area(float a, float b) { if (a < 0 || b < 0) //if the values are negative it is invalid return -1; float area = a*b; return area; } int main() { float a = 5, b= 2; cout << "Area is: " << area(a, b); }

Area is: 10

- Related Questions & Answers
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse?
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse in C?
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse?
- 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?
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle?
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle in C?
- Area of circle which is inscribed in an equilateral triangle?
- Area of Largest rectangle that can be inscribed in an Ellipse?
- Area of circle which is inscribed in equilateral triangle in C Program?
- Area of largest triangle that can be inscribed within a rectangle in C Program?
- 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?
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon in C?
- Area of the largest triangle that can be inscribed within a rectangle?

Advertisements