static void Main(string[] args) { double RemovingItem, elem; double[] key = { 1, 2, 3, 4, 5, 6 }; double[] key2 = { 3, 4, 5, 6, 7, 8 }; Plural P = new Plural(key); Plural P2 = new Plural(key2); try { elem = Convert.ToDouble(Console.ReadLine()); } catch (Exception) { Console.WriteLine("invalid input data, enter data again correctly"); elem = Convert.ToDouble(Console.ReadLine()); } P.Add(elem); P.cout(); try { RemovingItem = Convert.ToDouble(Console.ReadLine()); } catch (Exception) { Console.WriteLine("invalid input data, enter data again correctly"); RemovingItem = Convert.ToDouble(Console.ReadLine()); } P.Remove(RemovingItem); P.cout(); P.district(P2); P.cout(); P.minus(P2); P.cout(); P.union(P2); P.cout(); Console.ReadKey(); }