Program to find Circumference of a Circle | C # program to find circumference of circle ; utility function ; driver function
using System ; class GFG { static double circumference ( double r ) { double PI = 3.1415 ; double cir = 2 * PI * r ; return cir ; } public static void Main ( ) { double r = 5 ; double result = Math . Round ( circumference ( r ) * 1000 ) / 1000.0 ; Console . WriteLine ( " Circumference ▁ = ▁ " + result ) ; } }