August 2017
Beginner
566 pages
12h 34m
English
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:

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 ...
Read now
Unlock full access