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

19True or False: Failure to pay child support can result in the suspension of your license
You disrupt all hydrogen bonds in a protein. what level of structure will be preserved?
You are assessing a​ 48-year-old male who is unconscious. the scene is safe and you hear the patient gurgling. what is your next​ action?
write a congruence statement for the pair of triangles zyb
The formula V = πd2h 8 is used to find the volume of a parabolic cone. In the formula "d" represents the diameter of the cone and "h" represents the height. W
Instructions:Select the correct answer. When doing a close reading, what is involved in the process of annotating a text? 1. creating a graphic organizer to und
Find f '(0.3) for f of x equals the integral from 0 to x of the arccosine of t, dt
what are the inner planets relative distance from the Sun
What is the automotive name for the large wires that allow more electrical current to flow ?
What is the sum of the first 7 terms of the series −8+16−32+64−