Exemplo n.º 1
0
        static void Main(string[] args)
        {
            double a, b, c;

            Console.WriteLine("Enter a");
            while (!Double.TryParse(Console.ReadLine(), out a))
            {
                Console.WriteLine("Input is not valid");
                Console.WriteLine("Enter a");
            }
            Console.WriteLine("Enter B");
            while (!Double.TryParse(Console.ReadLine(), out b))
            {
                Console.WriteLine("Input is not valid");
                Console.WriteLine("Enter b");
            }
            Console.WriteLine("Enter c");
            while (!Double.TryParse(Console.ReadLine(), out c))
            {
                Console.WriteLine("Input is not valid");
                Console.WriteLine("Enter c");
            }

            Console.WriteLine();

            Decomposer decomposer = new Decomposer(a, b, c);

            decomposer.Resolve();

            Console.ReadLine();
        }