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

at the yalta conference of 1945 the military situation favored Roosevelt Churchill Eisenhower Stalin
What steps did US President Bill Clinton take to attempt to secure Bosnia and keep the peace there? A. He hosted Bosnia's warring leaders at the Dayton Accords
what two factors do u need to know to calculate how much work was done in any situation
Fat is stored in layers beneath the skin. This fat is part of the body's energy reserve. Give another function of the layers of fat.
how much thermal energy is needed to produce 1 cubic meter of steam
Solve the system of equations using matrices (row operations). If the system has no solution, say that it is inconsistent. 4x+3y=1 6x-1y=-15
he searched doggedly for his favorite socks
which pull factor accounted for much of Chinese immigration to the United States in the mid-1800s?
Which strategy is the best way to improve clarity in a wordy sentence? A)Use fewer powerful words. B)Avoid using adverbs. C)Eliminate redundancies. D)Use more m
List the rights that the nazi government took from the Jews.