using System; using System.Collections.Generic; using System.Linq; class Massiivitehted2 { public static void Main(string[] arg) { int[] m = {2, 6, 4, 5, 3, 2, 4, 3, 2}; Console.WriteLine(string.Join(" ", m)); Console.WriteLine("Suurim: "+m.Max()); Console.WriteLine("Nelja esimese summa: "+m.Take(4).Sum()); int[] m2=m.Take(4).ToArray(); Console.WriteLine("Tagurpidi: "+string.Join(" ", m2.Reverse().ToArray())); } }