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 solve the question and chose from the provided answer options.
What were the immediate and secondary causes of the civil war? Please help if you can. Thanks!
explain why hot air goes up
PLEASE ANSWER ASAP! *picture attached*
Can anyone help me do this please ?
How to create a machine that can create anything without any limitations
A sample of an uranium compound is found to be losing mass gradually. Explain what is happening to the sample.​please help. :,)
When Virginia became a royal colony how many people were still alive
PLEASE HELP!! Is the answer 50 seconds??? Guillermo is a professional deep water free diver. His altitude (in meters relative to sea level), x seconds after div
HELPPPPPPP!!!!!!!!!!!!!!!! A ball is thrown from an initial height of 2 meters with an initial upward velocity of 11 m/s. The ball's height h (in meters) after