Mega Code Archive

 
Categories / C# / Development Class
 

Find the radius of a circle given its area

/* C#: The Complete Reference  by Herbert Schildt  Publisher: Osborne/McGraw-Hill (March 8, 2002) ISBN: 0072134852 */ // Find the radius of a circle given its area.    using System;    public class FindRadius {       public static void Main() {         Double r;      Double area;        area = 10.0;        r = Math.Sqrt(area / 3.1416);        Console.WriteLine("Radius is " + r);    }     }