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

estimate 4,257 times 7
Find the other endpoint of a line segment which one endpoint at (-3, 5) and whose midpoint is (5, 2)
Find m∠ZWV. A. 5° B. 23° C. 35° D. 50°
in the House, the what assigns a bill to a committee
Which characteristics distinguish a law from a theory?
What is the slope of the line given by the following equation? Give an exact number.  -13x 5y=-7
which of the following is an example of how a scientist might use a model? a. a stopwatch is used to time the rate of a chemical reaction. b. a microscope is us
what is it called when a line of poetry continues on to another line both in sense and in grammar?
44769 to nearest ten
How do you do this (the first one)? i've been sitting trying to do this for literally half an hour.