Length of rope tied around three equal circles touching each other | Javascript program to find the length of rope ; Function to find the length of rope ; Driver code
const PI = 3.14159265 ; function length_rope ( r ) { return ( ( 2 * PI * r ) + 6 * r ) ; } let r = 7 ; document . write ( Math . ceil ( length_rope ( r ) ) ) ;