C ++ program to find side of the squares which 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 ( int n , int d ) { cout << " The ▁ side ▁ of ▁ each ▁ square ▁ is ▁ " << d / ( n - 1 ) << endl ; }