public static MathData GetAllValuesFromCustromer()
        {
            int    first     = GetInformationFromUser.GetValueFromUser("Podaj wartosc liczby A");
            int    second    = GetInformationFromUser.GetValueFromUser("Podaj wartosc liczby B");
            string operation = GetInformationFromUser.GetOperationFromUser();

            return(new MathData(first, second, operation));
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            while (true)
            {
                MathData mathData = GetInformationFromUser.GetAllValuesFromCustromer();

                double result = Calculations.DoMath(mathData);

                Console.WriteLine("Wynik to:" + " " + result);
            }
        }