C# Program:To Find Area Of a Circle

Sunday, 12 February 2012
using System;
class Circle
{
             public static void Main()
            {
                 double r;
                double result;
                Console.WriteLine("Enter Radius:");
                r=Convert.ToDouble(Console.ReadLine());
                result=(3.14*r*r);
               Console.WriteLine(result);
            }
}

0 comments:

Post a Comment