static void Main(string[] args) { string lineRead = InputSystem.ReadLine(); NumberReader numbersRead = new NumberReader(lineRead); double value_A = numbersRead.Read_A(); double value_B = numbersRead.Read_B(); double value_C = numbersRead.Read_C(); Bhaskara formulaBhaskara = new Bhaskara(value_A, value_B, value_C); formulaBhaskara.Calculate(); Console.ReadKey(); }
static void Main(string[] args) { List <bool> results = new List <bool>(); string lineRead = InputSystem.ReadLine(); NumberReader numbersRead = new NumberReader(lineRead); int num_A = numbersRead.Read_A(); int num_B = numbersRead.Read_B(); int num_C = numbersRead.Read_C(); int num_D = numbersRead.Read_D(); bool auxResult; auxResult = NumberChecker.IsNumberGreaterThanOtherNumber(num_B, num_C); results.Add(auxResult); auxResult = NumberChecker.IsNumberGreaterThanOtherNumber(num_D, num_A); results.Add(auxResult); int sumC_D = MathOperations.Sum(num_C, num_D); int sumA_B = MathOperations.Sum(num_A, num_B); auxResult = NumberChecker.IsNumberGreaterThanOtherNumber(sumC_D, sumA_B); results.Add(auxResult); auxResult = NumberChecker.IsNumberPositive(num_C); results.Add(auxResult); auxResult = NumberChecker.IsNumberPositive(num_D); results.Add(auxResult); auxResult = NumberChecker.IsNumberEven(num_A); results.Add(auxResult); CheckResults.CheckIfAllResultsAreTrue(results); Console.ReadKey(); }