I have an array that is {1 2 3 4 10 11} and the variable V = 6
the sum of the array should give the result = 31
thanks
I have an array that is {1 2 3 4 10 11} and the variable V = 6
the sum of the array should give the result = 31
thanks
There is the Sum () function of the language
example of use:
int suma = arr.Sum();