static void Main(string[] args) { double A, B; string enter = "Введите коэффициент А и B через пробел"; string readEnter; while (true) { Console.WriteLine(enter); readEnter = Console.ReadLine(); if (LinearEquation.parse(readEnter, out A, out B)) { break; } } LinearEquation lE = new LinearEquation(A, B); lE.ShowResult(); }