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

A geology student finds a rock formation composed of sedimentary rock. Based on the principle of _______, the student concludes that the layers on the bottom ar
Which of the following is a soultion to the quadratic equation below x^2 - 3x - 54 =0
rounding 1137 to the nearest hundred​
If p and q prime number greater than 2which of the following is not even integer ? a.p+q b.p×q c.p^2-q^2 d.p-q​
4 1/5 - 1 2/3can you help me​
Members of the team know their boundaries. True ot False
RS is the diameter of circle T. Point R is located at (11, 10) and point S is located at (5, 4). What are the coordinates of the center of this circle?
A very light ideal spring having a spring constant (force constant) of 8.2 N/cm is used to lift a 2.2-kg tool with an upward acceleration of 3.25 m/s2. If the s
A bottle has a volume of 40.2 liters.
A goiter may form as a consequence of an inadequate intake of