Find the radius of a circle given its area. : Math : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Math »

 

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); 
  }    
} 


           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Math