static void Step4411()
        {
            Console.WriteLine();
            Console.WriteLine("4411");
            double r = Lab02.Task4411(11.13);

            Console.WriteLine("{0:F15} ({1:F15})", r, 18.13);
            r = Lab02.Task4411(-7919);
            Console.WriteLine("{0:F15} ({1:F15})", r, -7912);
            r = Lab02.Task4411(0);
            Console.WriteLine("{0:F15} ({1:F15})", r, 7);
        }
예제 #2
0
 public void Task4411test()
 {
     Assert.AreEqual(18.13, Lab02.Task4411(11.13), 0.0001);
     Assert.AreEqual(-7912, Lab02.Task4411(-7919), 0.0001);
     Assert.AreEqual(7, Lab02.Task4411(0), 0.0001);
 }