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


Custom Search

C# Source Code » Data Types » Number »

 

Converting Radians to Degrees









    


using System;
using System.Data;


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

            Console.WriteLine(ConvertRadiansToDegrees (3.1415));

            Console.WriteLine(ConvertRadiansToDegrees (0));

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

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» Number