コード例 #1
0
 static void Step2981()
 {
     Console.WriteLine();
     Console.WriteLine("2981");
     int[]    in2981   = { 19, 23, 0, -7 };
     double[] outs2981 = { 28730.9120, 50965.0104, 0, 0 };
     for (int i = 0; i < in2981.Length; i++)
     {
         try
         {
             double result = Lab02.Task2981(in2981[i]);
             Console.WriteLine("{0:F6} ({1:F6})", result, outs2981[i]);
         }
         catch (Exception e)
         {
             Console.WriteLine(e.Message);
         }
     }
 }