Create a function that accepts one argument is the size given by the user, inside the function we create an array of this size, we load into the array of values in the console, calculate the sum of the elements of the array, and the function returns the sum through the return.

Solved
Show answers

Ask an AI advisor a question