ФІО = Дибовський Запитання:Знайти максимальне середне значення функції y= x+ cos(sin(x)) на проміжку 0,,,1 ==================================== ANSWER ==================================== using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { double tochnost=0.0001; double a=0, b=1; double max = Math.Cos(Math.Sin(0)); double sum=0; for (double i = a; i <= b; i += tochnost) { if (max < i + Math.Cos(Math.Sin(i))) max = i + Math.Cos(Math.Sin(i)); sum += Math.Cos(Math.Sin(i)); } Console.WriteLine("Max = {0}; seredne ?? = {1}", max,sum/tochnost); Console.ReadKey(); } } } // насчет среднего не уверен... END of ANSWER ====================================