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

Who sponsored Vasco Nunez de Balboa's voyages
In a class of 25 students, the average score is 83. eight students in the class each received a maximum score of 100, and five students each received a score of
Adopting a child is a significant commitment, but a smaller task than having and rearing your own child. a. True b. False
Ringing of the ears after exposure to loud music is most likely to be caused by damage to
Using the variable x, write the interval as an inequality. -2<x<1
Could 7.7 cm, 4.0 cm, and 1.7 cm be the side lengths of a triangle?
One isotope of aluminum is 27/13al. how many electrons would a neutral atom of this isotope contain?
Can someone helper please?
You think that you can't get there from where and who you are at this moment because you are not yet complete or good enough, but the truth is that here and now
What is the maximum amount of variables in a exponential equation A.1 B.2 C.3 D.0