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

please help me i have a brain fart i forgot
Figure out the combination will choose brainliest
need both, if 5 is worked out pls work it out. thank you​
Ashley bought 3 bottles of water and a large pizza. The pizza cost $10.99 and the total bill was $15.49. (2 points) Part A: Write an equation to represent the s
I NEED HELP NOWWWW AND I MEAN RIGHT THIS SECOND PLEASE
Tlaloc pumped up 56 balls. He pumped up 5 dodge balls for every 9 other balls.
_______ vessels serve the stomach
Which development most contributed to the educational and economic trends discussed in the excerpt? A.Civil Rights Movement B.growth of suburbs C.baby boom D.GI
what does ,"fallen from grace" indicates?​
The graph shows the amount of bacteria on a door handle after a certain amount of hours. Suppose the function graphed is B(h) = 2h. Use this to predict how many