This program will calculate a sum for all values introduced in a  array. I'll post the full code at the end or it can be found at github.com
The program starts with the introduction of variables and the array in question.
int z = 0;
int x = 0;