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 did war increase American production
parallelogram ABCD has vertices A(-2,-51/2), B(-4,-51/2), C(-3,-2), and D(-1,-2). find the vertices of parallelogram A'B'C'D' after a translation of 2 1/2 units
In running a home business, it is important to keep accurate financial records. true false
Please help! Please explain and choose an answer
What is 5 1/3 minus 1 2/3
NEED HELP NOW 51 POINTS!! WILL MARK BRAINLIEST IF ANSWER ALL
simplify the expression [tex] \frac{-5+i}{2i}[/tex]
Simplify 7(2.3 x 10^11) and write in scientific notation.EDIT: It's 1.61 x 10^12
all energy is any ecosystem starts as
How did war increase American production