Calculate : int : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » int »

 

Calculate









    

/*
C# Programming Tips & Techniques
by Charles Wright, Kris Jamsa

Publisher: Osborne/McGraw-Hill (December 28, 2001)
ISBN: 0072193794
*/

namespace nsArea
{
    using System;
    public class Area
    {
        static public void Main ()
        {
            double Area;
            int Radius = 42;
            GetArea (Radius, out Area);
            Console.WriteLine ("The area of a circle with radius {0} is {1}",
                                Radius, Area);
        }
        static void GetArea (int radius, out double area)
        {
            const double pi = 3.14159;
            area = pi * radius * radius;
        }
    }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» int