private void radioButton2_CheckedChanged(object sender, EventArgs e) { DEGtoDMS obj = new DEGtoDMS(); t1.Text = obj.deg2dms(angles[2]); t2.Text = obj.deg2dms(angles[3]); t3.Text = obj.deg2dms(angles[4]); t4.Text = obj.deg2dms(angles[5]); t5.Text = obj.deg2dms(angles[6]); t6.Text = obj.deg2dms(angles[7]); t7.Text = obj.deg2dms(angles[0]); t8.Text = obj.deg2dms(angles[1]); }
static void Main(string[] args) { Console.WriteLine("Enter angle in degree decimal format..."); string deg = Console.ReadLine(); DEGtoDMS obj = new DEGtoDMS(); Console.WriteLine("Angle in DMS format is " + obj.deg2dms(deg)); Console.WriteLine("Enter an angle to calculate log sine value:"); double num = Double.Parse(Console.ReadLine()); Console.WriteLine("Log sine value is " + Math.Log10(Math.Sin(num * 3.14 / 180)) + " PI : " + Math.PI); Console.ReadKey(); }