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

When tectonic plates move, the cracks that occur are known as faults?
If ∆JKL ≅ ∆PQR, which one of these is not a pair of corresponding parts? ​∠J and ∠P​ and ​∠L and ∠R​ and
Read the excerpt from “How I Live” by Nathaniel Hawthorne. I have been busy all day, from early breakfast-time till late in the afternoon. It has been a brisk,
Girls who reach puberty at an earlier age were viewed as being at a higher risk for delinquency because
In some proteins, the side chain of serine appears to undergo ionization. explain why ionization would be facilitated by the presence of an aspartate residue ne
Solve. 1/2x - 2/5x = -2
What is true of sexual reproduction that brings together genetic material from two parents?
history question down below
Felix was so preoccupied with his girlfriend's good looks that he failed to perceive any of her less admirable characteristics. this best illustrates an unfortu
3tens 12ones= —— tens 2 ones