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

What does the color of a star determine
Sharon is 54 inches tall. tree in her backyard is five times as tall as she is. the floor of her treehouse is at a height that is twice as tall as she is. What
What is the inequality for the question 3x-2<10
Is 6 a múltiple factor Of 24
Why did Albert Einstein leave Germany? A. because his scientific experiments were continually disproved B. because he was a member of the then out-of-power N
Which of the following is not presented as a key component to understanding a memoir? a. supporting details b. theme c. key ideas d. setting
Identify the simple predicate in the following sentence. George Washington was one of the greatest generals in American history.
How do you determine the half-life of a radioactive parent isotope based on a decay curve?
Prehistoric Indian civilizations created them • made of dirt by hundreds of workers • used for different purposes, like burying the dead or building sites for i
how do bases bond together