laiban123456 laiban123456
  • 02-07-2020
  • Computers and Technology
contestada

Q) write a code that reads a given array and calculates the SUM of its elements.

Respuesta :

Plus16463574585
Plus16463574585 Plus16463574585
  • 02-07-2020

Answer:

See the explanation below.

Explanation:

If don't know which language you are using, but the basic pseudo code for this problem will be:

variable sum = 0;

for ( i = 0;  i < array.length;  i ++) {

    sum += array[i];

}

print(sum);

Best Regard!

Answer Link

Otras preguntas

How do I write 3 3/7 as an improper fraction
should i go with the maroon or forest green top for my outfit tomorrow? 25 points
How can we tell what extinct plants looked like?
Your research question is: Does the color blue make people feel calmer? Using what you have learned about the scientific method, explain in two to three sentenc
What is the equation in slope intercept form
help me please...........​
write any three features of our social culture​
find the distance between (5,9) and (-7,-7)
What is the capital of California? explain where this city is located and when it was founded ​
Find the area of the following Trapezoid.