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

15 dollars a hour spends 25 dollars a day. Write an expresstion of his earnings in a day?
Estoy Aburrido What does this mean ?​
Please help me on this question 20 points
Complete the equation of this circle: A 1 [ ]=z([_]_^)+z([ ¿ ] − x) Enter ⚠️NEED HELP ASAP WILL GIVE BRAINLIEST⚠️
The sum of two fractions is 2/3. One fraction is 1/2. What is the other fraction?
The diagram shows the height of a cone that holds ice cream the current has a volume of 1.5 pi cubic inches which measurement is closest to the radius of the co
Please help!!! Work out the surface area for this solid prism.
How did the spread of Germanic and Slavic languages impact others
I NEED HELP ASAP!!!!!
What effect do predators have on the ecosystem?