That's about it! Let's go ahead and run our program. Go to Debug > Start Without Debugging or do Ctrl + F5. Give it a second to build and then you should get your results:
Figure 3.2: The debug Window
It says the sum is 12 and the average is 2. These are simple values, so you can just check them on a calculator. Go ahead and check them. Add them up and make sure that the sum is 12. Then, you can average them out. We have six values in our array, so 12 divided by 6 is 2. This is the average.
Here's the full program code for this chapter for your reference:
using static System.Console; //needed for getting WriteLine into our code class Program { static void Summarize(double[] values, out double sum, out double
average) { //out keyword means that when the values of sum and average are
//set inside Summarize...