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

Which description best fits the graph?
The word repulse means “to repel.” How does adding the suffix -ive to the word change its meaning? It changes an adjective to a noun meaning “a force that repel
The mean of the following frequency distribution is 25.2. Find the missing frequency x.Class0 - 10 10 - 20 20 – 30 30 – 40 40 - 50Frequency8x10119​
please help will give you brainliest ​
Y = [ ? ] PLEASE HELP
(x-4)/(2x+1)-3 can you help me with this question
which entity has control over samurai garden in free fire​
What is the measure of z G?
Mary wants to make cherry pies she byes 4 pounds of cherries for $8 how much money does mary pay for 1 pounds of cherries
How did the industrial revolution change farming, made it better?