text: Radius of the circle when the width and height of an arc is given | C ++ program to find radius of the circle when the width and height of an arc is given ; Function to find the radius ; Driver code
code: #include <bits/stdc++.h> NEW_LINE using namespace std ; void rad ( double d , double h ) { cout << " The ▁ radius ▁ of ▁ the ▁ circle ▁ is ▁ " << ( ( d * d ) / ( 8 * h ) + h / 2 ) << endl ; } int main ( ) { double d = 4 , h = 1 ; rad ( d , h ) ; return 0 ; }