ФІО = Ты хто?Шрубковский иван Запитання:Ваше запитаня у меня два метода, а мне нужно сделать одним методом чтобы искало min i max ==================================== ANSWER ==================================== using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication2 { class MyClass1 { public double min; public double max; } class Program { const int max = 4; static double[] mas = new double[max]; static double min1, max1; static void zapolnit_masiv() { Console.WriteLine("Введите елементы массива:"); for (int i = 0; i < max; i++) { Console.Write("mas[{0}] = ", i); mas[i] = Convert.ToDouble(Console.ReadLine()); } } static void findminmax() { min1 = mas[0]; max1 = mas[0]; for (int i = 1; i < max; i++) { if (max1 < mas[i]) { max1 = mas[i]; } else if (min1 > mas[i]) { min1 = mas[i]; } } return; } static void Main(string[] args) { zapolnit_masiv(); // ф. заповнює масив з клвтри findminmax(); Console.WriteLine("Min = {0} ; Max = {1}", min1,max1); Console.ReadKey(); } } } END of ANSWER ====================================