![]() |
Given a semicircle with radius R, which inscribes a rectangle of length L and breadth B, which in turn inscribes a circle of radius r. The task is to find the area of the circle with radius r. Input : R = 2 Output : 1.57 Input : R = 5 Output : 9.8125
Approach:
C++
Javascript
Output:
9.8125
Time Complexity: O(1) Auxiliary Space: O(1) |
Reffered: https://www.geeksforgeeks.org
C++ Programs |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |