private void btnTask4_Click(object sender, EventArgs e) { double R; double.TryParse(txtTask4.Text, out R); lblTask4X.Text = calculator.task4(R).ToString(); }
public void Execute(lab1Calc Laba1) { double X; Console.WriteLine("Введите число X"); double.TryParse(Console.ReadLine(), out X); Console.WriteLine("Ответ: " + Laba1.task4(X)); }
public void test1() { double result = obj.task4(1.5); Assert.AreEqual(1, result, 0.0001); }