예제 #1
0
        private static void Exercise5()
        {
            ConsoleAppPrintUtil.PrintTextWithLineSeparator("Ejercicio 4:");

            var questions = new string[] {
                "Introduzca el primer número: ",
                "Introduzca el segundo número: "
            };

            var answer1 = ConsoleAppPrintUtil.PrintQuestionWithStringAnswer(questions[0]);

            var answer2 = ConsoleAppPrintUtil.PrintQuestionWithStringAnswer(questions[1]);

            var number1 = answer1 == string.Empty ? null : answer1;

            var number2 = answer2 == string.Empty ? null : answer2;

            ConsoleAppPrintUtil.PrintDivision(number1, number2);
        }