Radius of the circle when the width and height of an arc is given

Given a circle in which the width and height of an arc are given. The task is to find the radius of the circle with the help of the width and height of the arc.

Examples:

Input: d = 4, h = 1 
Output: The radius of the circle is 2.5

Input: d = 14, h = 8
Output: The radius of the circle is 7.0625

Approach