using System; using System.Collections.Generic; using System.Linq; class Massiivitehted3 { public static void Main(string[] arg) { int[] vanapaaskyla={10, 14, 18}; int[] haava={18}; int[] kalev={5, 14, 18, 20, 36}; Console.WriteLine(string.Join(" ", vanapaaskyla.Intersect(haava). Intersect(kalev).ToArray())); Console.WriteLine(string.Join(" ", vanapaaskyla.Except(haava).ToArray())); Console.WriteLine(string.Join(" ", vanapaaskyla.Union(haava). Union(kalev).ToArray())); } }