示例#1
0
        static void Step6351()
        {
            Console.WriteLine();
            Console.WriteLine("6351");
            double[] in6351x         = { 0, 1, 1.5, 2, 3, 0, 1, 1.5, 2, 3, 0, 1, 1.5, 2, 3 };
            double[] in6351y         = { 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2 };
            String   positivePattern = "{{{0};{1}}} принадлежит области";
            String   negativePattern = "{{{0};{1}}} не принадлежит области";

            for (int i = 0; i < in6351x.Length; i++)
            {
                String currentPattern;
                if (Lab06.task6351(in6351x[i], in6351y[i]))
                {
                    currentPattern = positivePattern;
                }
                else
                {
                    currentPattern = negativePattern;
                }
                Console.WriteLine(currentPattern, in6351x[i], in6351y[i]);
            }
        }