Given a rectangle of length l & breadth b, we have to find the largest cricle that can be inscribed in the rectangle.
Input : l = 4, b = 8 Output : 12.56 Input : l = 16 b = 6 Output : 28.26
From the figure, we can see, the biggest circle that could be inscribed in the rectangle will have radius always equal to the half of the shorter side of the rectangle. So from the figure,
radius, r = b/2 &
Area, A = π * (r^2)
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Biggest Square that can be inscribed within an Equilateral triangle
- Largest rectangle that can be inscribed in a semicircle
- Area of Largest rectangle that can be inscribed in an Ellipse
- Maximum area of a Rectangle that can be circumscribed about a given Rectangle of size LxW
- Largest subset of rectangles such that no rectangle fit in any other rectangle
- Area of Equilateral triangle inscribed in a Circle of radius R
- Check if any point overlaps the given Circle and Rectangle
- Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
- Equation of circle when three points on the circle are given
- Check if a circle lies inside another circle or not
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Largest triangle that can be inscribed in a semicircle
- Largest square that can be inscribed in a semicircle
- Largest trapezoid that can be inscribed in a semicircle
- Area of the Largest square that can be inscribed in an ellipse
- Largest right circular cone that can be inscribed within a sphere
- Largest hexagon that can be inscribed within a square
- Sum of Area of all possible square inside a rectangle
- Rectangle with minimum possible difference between the length and the width
- Count the number of rhombi possible inside a rectangle of given size
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.