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 is ten times the sum of half a number and 6 is 8
How do you say Nicaragua in French
How could shifts in the physical environment have caused major changes in early civilizations (select 2) A) Build up of silt could have made Rivers less salty
Solve y = mx + b for x
Japan was the first country to surrender in World War II. true or false?
what structure is common to all six kingdoms of living organisms
at the gate of the castle the prince was waiting to receive her. he had dreamy violet eyes, and his hair was like fine gold. when he saw her he sank upon one kn
The passing of traits from parents to children is called
Write the population of Florida in expanded formusing exponents 18,801310
How to write 63 four different ways