コード例 #1
0
 static void Step9130()
 {
     Console.WriteLine();
     Console.WriteLine("9130");
     int[]    in9130m1 = { 3, 7219, 7193, -5, 10 };
     int[]    in9130m2 = { 7, 7213, 7187, 4, 0 };
     int[]    in9130r  = { 13, 7207, 0, 10, 15 };
     double[] outs9130 = { 9.8312, 1.2186, 0, 0, 0 };
     for (int i = 0; i < in9130m1.Length; i++)
     {
         try
         {
             double result = Lab02.Task9130(in9130m1[i], in9130m2[i], in9130r[i]);
             Console.WriteLine("{0:F6} ({1:F6})", result, outs9130[i]);
         }
         catch (Exception e)
         {
             Console.WriteLine(e.Message);
         }
     }
 }