Connect with one of the following accounts


Please wait while we redirect...

Views: 126   

Following program shows you how to calculate circle circumference.
In this program we get circle radius from user and calculate circumference using following formula
Circumference = 2 X PI X r

using System;

class MainClass {
  public static void Main (string[] args) {
    Console.WriteLine ("Please enter the radius of circle:");
    double circleRadius = Convert.ToDouble(Console.ReadLine());

    double circumferenceOfCircle = 2 * Math.PI * circleRadius;
    Console.WriteLine("Circumference of circle is: " + circumferenceOfCircle);



Please enter the radius of circle:
Circumference of circle is: 43.9822971502571

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News