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

How do you write this as a single fraction in its simplest form? Show workings please!
16 increased by twice a number is -24
For what reason was the "Union Party" created? Who were its candidates?
1/4(12x+16)=10-3(x-2) anyone?
how do solve 21s=3 ?
3312 divided by 48 long division
What prevents ions from crossing the plasma membrane via simple diffusion? A. Ions are too large. B. Ions carry a charge. C. Ions are hydrophobic. D. Ions do n
What is the rounding or compatible numbers to estimate the sum of 87+34
If every positive number has two square roots and you can find the length of the side if a square window by finding a square root of the area, why is there only
is 8/5 rational or irrational?