Computing the sum and the average of numbers

Please enter several numbers separated by spaces:

You entered:   numbers
The sum is:
The average is:

More information on the for-loop can be found here.

You can examine the code of the project by clicking on "View" -> "Source" buttons in Internet Explorer.