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 is mass transit in cities a possible solution tk urban air pollution?
Which equation has the same y-intercept as y=4x-3?a. y-3=x              b. y=8x+3    c. 3-y=4x      d. y=-3+8xWhich of the following is the equation of the line
Can someone use the word delta in a sentence
(10y^3+20y^2+55y)/5y
How is it possible for Mercury to have frozen ice ?
Marika and Freddy sold 70 homes for Ron Realty. If Marika sold 2.5 times as many homes as Freddy, how many homes did each sell?
Prove that (x^5)-(x^2)+2x +3=0 has at least one real root. Prove that x=cosx has at least one solution.
how is mass transit in cities a possible solution tk urban air pollution?
How were life forms affected by the rise in atmospheric oxygen levels that began 2.2 billion years ago?
How were life forms affected by the rise in atmospheric oxygen levels that began 2.2 billion years ago?