C ++ program to find the distance between centers of two intersecting circles if the radii and common chord length is given
#include <bits/stdc++.h> NEW_LINE using namespace std ; void distcenter ( int r1 , int r2 , int x ) { int z = sqrt ( ( r1 * r1 ) - ( x / 2 * x / 2 ) ) + sqrt ( ( r2 * r2 ) - ( x / 2 * x / 2 ) ) ; cout << " distance ▁ between ▁ the " << " ▁ centers ▁ is ▁ " << z << endl ; }