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:
Related in same category :
-
-
-
-
-
-
-
-
-
|