public double[] GetArray() { var various = 3; var array = new double[various * 4]; for (var i = 0; i < various; i++) { label_x: ConsoleHelper.WriteEncolored($"\r\n ** Enter\r\n X{i + 1}: ", ConsoleColor.Cyan); try { array[i * 4 + 0] = Convert.ToDouble(Console.ReadLine()); } catch { ConsoleHelper.WriteLineEncolored(" *** Input error.", ConsoleColor.Red); goto label_x; } label_y: ConsoleHelper.WriteEncolored($" Y{i + 1}: ", ConsoleColor.Cyan); try { array[i * 4 + 1] = Convert.ToDouble(Console.ReadLine()); } catch { ConsoleHelper.WriteLineEncolored(" *** Input error.", ConsoleColor.Red); goto label_y; } label_z: ConsoleHelper.WriteEncolored($" Z{i + 1}: ", ConsoleColor.Cyan); try { array[i * 4 + 2] = Convert.ToDouble(Console.ReadLine()); } catch { ConsoleHelper.WriteLineEncolored(" *** Input error.", ConsoleColor.Red); goto label_z; } label_c: ConsoleHelper.WriteEncolored($" C{i + 1}: ", ConsoleColor.Cyan); try { array[i * 4 + 3] = Convert.ToDouble(Console.ReadLine()); } catch { ConsoleHelper.WriteLineEncolored(" *** Input error.", ConsoleColor.Red); goto label_c; } Console.WriteLine(); } return(array); }