Social Icons

Wednesday, 12 February 2014

Program to find the area of a circle

using System;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            double a;
            float r;
            Console.Write("\n Enter the radius of circule : ");
            r = float.Parse(Console.ReadLine());
            a = 3.14 * r * r;
            Console.Write("\n Area of circle is : " + a);
            Console.ReadLine();
        }
    }
}


                                                              Output

No comments:

Post a Comment