Home > Article > Backend Development > What is the area of the largest triangle that can be inscribed in a rectangle?
A rectangle is a quadrilateral with equal and parallel opposite sides. Adjacent sides make 90°. A triangle is a closed figure with three sides.
The largest triangle inscribed in a rectangle. The base is equal to the length of the rectangle, and the height of the triangle is equal to the width of the rectangle.

Area = (½)*l*b
The area of the largest triangle inscribed in a rectangle = (½)*l*b
Program to calculate the area of the largest triangle within a rectangle-
#include <stdio.h>
int main(void) {
int l = 10, b = 9;
float area ;
area = (float)((l*b)/2);
printf("Area of largest triangle inscribed in a rectangle of
length %d and breadth %d is %f",l,b,area);
return 0;
}Area of largest triangle inscribed in a rectangle of length 10 and breadth 9 is 45.000000
The above is the detailed content of What is the area of the largest triangle that can be inscribed in a rectangle?. For more information, please follow other related articles on the PHP Chinese website!