Inscribed Square and Triangle
Observe the following drawing…. You’re given the area of the circle centered at L as in the image and a number that denotes the proportion of area of circles [Proportion = Area(circle of center O) / Area(circle of center L)].
Write a program that will calculate the area of ABCD quadrilateral and BPQ triangle [Shown in the image].
Input contains only only two floating point number separated by a single space.
You are to take double precision numbers as input. Consider ℼ=arccos(-1).
Area of Triangle
Area of quadrilateral
Problem Setter: Niloy Sarker