text: Shortest distance from the centre of a circle to a chord | Function to find the shortest distance ; Driver code
code: function shortdis ( r , d ) { document . write ( " " + " " + Math . sqrt ( ( r * r ) - ( ( d * d ) / 4 ) ) + " " ) ; } let r = 4 , d = 3 ; shortdis ( r , d ) ;