Largest sphere that can be inscribed within a cube which is in turn inscribed within a right circular cone
Given here is a right circular cone of radius r and perpendicular height h, which is inscribed in a cube which in turn is inscribed in a sphere, the task is to find the radius of the sphere.Examples: Input: h = 5, r = 6 Output: 1.57306 Input: h = 8, r = 11 Output: 2.64156 Approach: Let the side of t