How to calculate the circumference of a circle in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        double r = 6;
      
        double circumference = 2 * Math.PI * r;

        Console.Write(circumference);
    }
}




/*
run:

37.6991118430775

*/

 



answered Nov 30, 2022 by avibootz

Related questions

...