text: Shortest distance from the centre of a circle to a chord | C # program to find the shortest distance from chord to the centre of circle ; Function to find the shortest distance ; Driver code
code: using System ; class GFG { static void shortdis ( double r , double d ) { Console . WriteLine ( " The ▁ shortest ▁ distance ▁ " + " from ▁ the ▁ chord ▁ to ▁ centre ▁ " + ( Math . Sqrt ( ( r * r ) - ( ( d * d ) / 4 ) ) ) ) ; } public static void Main ( ) { double r = 4 , d = 3 ; shortdis ( r , d ) ; } }