C ++ program to find side of the squares inclined and touch each other externally at vertices and are lined in a row and distance between the centers of first and last squares is given
#include <bits/stdc++.h> NEW_LINE using namespace std ; void radius ( double n , double d ) { cout << " The ▁ side ▁ of ▁ each ▁ square ▁ is ▁ " << d / ( ( n - 1 ) * sqrt ( 2 ) ) << endl ; }