10+ C Sharp Programs to Calculate Area of a Circle

This post contains a total of 10+ C Sharp Program Examples with Source Code to Calculate the Area of a Circle. All these Circle Area Calculator programs are made using C Sharp.

You can use the source code of these examples with credits to the original owner.

Related Posts

C Sharp Programs to Calculate Area of Circle

1. By Noah Tait

Made by Noah Tait. Improved Area of Circle Calculator. Source

Please input a value for radius
Your input: 9
The area of this circle is 254.34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoloLearn
{
	class Program
	{
		static void Main(string[] args)
		{
			Console.WriteLine("Please input a value for radius");
			const double Pi = 3.14;
			double radius;	
			radius = Convert.ToDouble(Console.ReadLine());
			Console.WriteLine("Your input: " + radius);
			double area = (Pi * (radius * radius));
			Console.WriteLine("The area of this circle is " + area);
		}
	}
}

2. By K.S.S. Karunarathne

Made by K.S.S. Karunarathne. A simple Program to Calculate the Area of a Circle. Source

10
314
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace SoloLearn
{
    class Program
    {
        static void Main(string[] args)
        {
            double pi = 3.14;
            double diameter =Convert.ToDouble(Console.ReadLine());
            Console.WriteLine(pi*diameter*diameter);
             
        }
    }
}

3. By Mr Freeman

Made by Mr Freeman. Basic C# Program that can find the area of a circle by using its radius. Source

11
379.94
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoloLearn
{
    class Program
    {
        static void Main(string[] args)
        {
            const double pi = 3.14;
            double radius;
            
            Console.Write("");
            double r;
            r = Convert.ToDouble(Console.ReadLine());
            double result;
            result = r*r*pi;
            Console.WriteLine($"{result}");
            Console.ReadLine();
        }
    }
}

4. By Abdulmuizz Hamzat

Made by Abdulmuizz Hamzat. Source

12
The diameter of the circle is 24 meters, the circumference is 75.36 meters and the area is 452.16 square meters.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoloLearn
{
    class Program
    {
        static void Main(string[] args)
        {
            const double PI = 3.14;
            double rad, dia, periCircle, areaCircle; 
            
            rad = 12;
            dia = (2 * rad);
            periCircle = (PI * dia);
            areaCircle = (PI * rad * rad);
            
            Console.WriteLine("The diameter of the circle is {0} meters, the circumference is {1} meters and the area is {2} square meters.", dia, periCircle , areaCircle);
        }
    }
}

5. By Sagheb

Made by Sagheb. Source

13
530.66
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoloLearn
{
    class Program
    {
        static void Main(string[] args)
        {
            const double pi = 3.14;
            double radius =Convert.ToDouble(Console.ReadLine());
            double circleArea = pi*radius*radius;
            Console.WriteLine(circleArea);
        }
    }
}

6. By Elia John

Made by Elia John. Source

14
The Area of the circle is: 615.752160103599
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace SoloLearn
{
    class Program
    {
        static void Main(string[] args)
        {
          /* 
          you give me the lenght of the radius of a circle (a double number), and I give you its area. 
          */
          double Pi=Math.PI;
 double r=Convert.ToDouble(Console.ReadLine());
          double Area=Pi*r*r;
          Console.Write ("The Area of the circle is: ");
          Console.WriteLine (Area);
        }
    }
}

7. By Faizal Khan

Made by Faizal Khan. Source

15
706.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoloLearn
{
    class Program
    {
        static void Main(string[] args)
        {
            int r = Convert.ToInt32(Console.ReadLine());
            // r is radius
            double area = r*r*3.14;
            Console.WriteLine("Area of circle is {0}", area);
        }
    }
}

8. By Ghufran Sbiai

Made by Ghufran Sbiai. Basic Area of a Circle Program. Source

16
803.84
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Sololearn
{
    class Program
    {
        static void Main(string[] args)
        {
            double Pi=3.14;
            
            double r =  Convert.ToDouble(Console.ReadLine());
            
          double Area = Pi * r * r;
          
          Console.WriteLine(Area);
        }
    }
}

9. By David Tamaratare Oghenebrume

Made by David Tamaratare Oghenebrume. Source

Enter a radius of your choice:17
Area of the circle with radius 17 is 907.92027688745
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Sololearn
{
    class Program
    {
        static void Main(string[] args)
        {
        //Click RUN and enter a number then click SUBMIT
         double area,radius;
         Console.WriteLine("Enter a radius of your choice:");
         radius=Convert.ToDouble(Console.ReadLine());
         
         area= Math.PI * radius * radius;
         
         Console.WriteLine("Area of the circle with radius {0} is {1}",radius,area);
         
        }
    }
}

10. By Julian Aung

Made by Julian Aung. Simple Circle Area Finder C# Program. Source

18
254.34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace SoloLearn
{
    class Program
    {
        static void Main(string[] args)
        {
            double Pi = 3.14;
            int diameter =Convert.ToInt32(Console.ReadLine());
            int radius = diameter/2;
            double circleArea = Pi*radius*radius;
            Console.WriteLine(circleArea);
            
        }
    }
}

11. By William Ainley

Made by William Ainley. Source

19
1134.262
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace system
{
	class Program
	{
		static void Main(string[] args)
		{
			const double pi = 3.142;
		   int rad = Convert.ToInt32(Console.ReadLine());
		   Console.WriteLine(rad*rad*pi);
		}
	}
}