Ejemplo n.º 1
0
        static void Main()
        {
            char toContinue = 'n';

            do
            {
                int choice       = 0;
                int firstNumber  = 0;
                int secondNumber = 0;

                ShowMenu();

                choice       = GetChoice();
                firstNumber  = GetParameter();
                secondNumber = GetParameter();

                string calculationResult = CalculationManager.Calculate(choice, firstNumber, secondNumber);
                Console.WriteLine(calculationResult);
                toContinue = Decide();
            } while (toContinue != 'n' && toContinue == 'y');
            //100 lines
        }