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);
}
}
|