text: Length of rope tied around three equal circles touching each other | C program to find the length of rope ; Function to find the length of rope ; Driver code
code: #include <stdio.h> NEW_LINE #define PI  3.14159265 NEW_LINE float length_rope ( float r ) { return ( ( 2 * PI * r ) + 6 * r ) ; } int main ( ) { float r = 7 ; printf ( " % f " , length_rope ( r ) ) ; return 0 ; }