Compute the area of a circle : double : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » double »

 

Compute the area of a circle









    

/*
C#: The Complete Reference 
by Herbert Schildt 

Publisher: Osborne/McGraw-Hill (March 8, 2002)
ISBN: 0072134852
*/
// Compute the area of a circle. 
  
using System;  
   
public class ComputeCircle {   
  static void Main() {   
    double radius; 
    double area; 
 
    radius = 10.0; 
    area = radius * radius * 3.1416; 
 
    Console.WriteLine("Area is " + area); 
  }   
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» double