Converting Degrees to Radians : Number : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » Number »

 

Converting Degrees to Radians









    


using System;
using System.Data;


class Class1{
        static void Main(string[] args){
            Console.WriteLine(ConvertDegreesToRadians (180));

            Console.WriteLine(ConvertDegreesToRadians (90));

            Console.WriteLine(ConvertDegreesToRadians (30));

        }
    public static double ConvertDegreesToRadians (double degrees)
    {
      double radians = (Math.PI / 180) * degrees;
      return (radians);
    }  
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» Number