public void Run()
 {
     X = GetNumberFromUser.Invoke();
     Y = GetNumberFromUser.Invoke();
     MenuPrinter.Invoke();
     ResultPrinter.Invoke(Calculate.Invoke(X, Y, GetUserChoice.Invoke()));
 }
Пример #2
0
        public void Run()
        {
            X = GetNumberfromUser.Invoke();
            Y = GetNumberfromUser.Invoke();
            MenuPrinter.Invoke();
            int    UserChoice = GetUserChoice.Invoke();
            double Result     = Calculate.Invoke(X, Y, UserChoice);

            ResultPrinter.Invoke(Result);
        }
Пример #3
0
        public Run()
        {
            double sum;

            x = GetNumberFromUser.Invoke();
            y = GetNumberFromUser.Invoke();
            MenuPrinter.Invoke();
            int choice = GetUserChoice.Invoke();

            sum = Calculate.Invoke(x, y, choice);
        }