public void PrintSums(int n) { NumberPlayground NumberPlayground1 = new NumberPlayground(); Console.WriteLine("Sum output for each implemetation"); Console.WriteLine("Sum_A: " + NumberPlayground1.Sum_A(n).ToString()); Console.WriteLine("Sum_B: " + NumberPlayground1.Sum_B(n).ToString()); Console.WriteLine("Sum_C: " + NumberPlayground1.Sum_C(n).ToString()); }
static void Main(string[] args) { // R: stable, readable, modular, extensible, performant // R0.3 NumberPlayground NumberPlayground1 = new NumberPlayground(); NumberPlayground1.PrintAscending(); NumberPlayground1.PrintDescending(); NumberPlaygroundTest NumberPlaygroundTest1 = new NumberPlaygroundTest(); NumberPlaygroundTest1.PrintSums(5); Console.WriteLine("Press any key to exit..."); Console.ReadKey(); }