C and C++ Tutorial: A very simple piece of code for the beginner in C++. It demonstrates how to calculate the average of some numbers. Uses the ‘for’ loop.