Esempio n. 1
0
        static void Step5382()
        {
            Console.WriteLine();
            Console.WriteLine("5382");
            double[] in5382x         = { 5, 1, 0, 5, 1, 0, 5, 1, 0, 5, 1, 0, 5, 1, 0 };
            double[] in5382y         = { 5, 5, 5, 4, 4, 4, 3, 3, 3, 2, 2, 2, 1, 1, 1 };
            String   positivePattern = "{{{0};{1}}} принадлежит области";
            String   negativePattern = "{{{0};{1}}} не принадлежит области";

            for (int i = 0; i < in5382x.Length; i++)
            {
                String currentPattern = Lab05.Task5382(in5382x[i], in5382y[i]) ? positivePattern : negativePattern;
                Console.WriteLine(currentPattern, in5382x[i], in5382y[i]);
            }
        }