Código con errores (Parte 3)

Published by SyntaxGardener in

Corrige el código en la pestaña Code para que la función devuelva la suma de todos los enteros del arreglo.

Ejemplos

Program.SumArray(new[] { 1, 2, 3, 4, 5 }) ➞ 15

Program.SumArray(new[] { -1, 0, 1 }) ➞ 0

Program.SumArray(new[] { 0, 4, 8, 12 }) ➞ 24

Notas

Lee cada carácter con atención. Este desafío no debería ser difícil.