static void PrintOutput() { int mostFrequentNumber = ValueFromArray.MostFrequentNumber(arr); Console.WriteLine(mostFrequentNumber + " - " + NumberOfOccurences(mostFrequentNumber) + " times"); }
static void PrintOutput() { int[] maxSumSequence = FindArraySequence.MaxSum(arr); Console.WriteLine("Sequence: " + ArrayTo.String(maxSumSequence)); Console.WriteLine("Sum: " + ValueFromArray.SumOfArray(maxSumSequence)); }