Hello, osodud!

A diagram will always help.Find the greatest area rectangle which can be drawn

inside a right triangle with legs 3 and 4.Code:- - * : : | * : 3-y| * : : | * 3 - *-----------* : : | x | * : y | |y * : : | | * - - *-----------*-----------* : - - x - - : - 4-x - : : - - - - - 4 - - - - - :

The area of the rectangle is: . .[1]

From the similar right triangles, we have: .

. . which simplifies to: . .[2]

Substitute [2] into [1]: .

And you must maximize: .

. . Got it?