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

Find the slope of the line that passes through the points (9, -2) and (4, 3) (
How would decreasing the time it takes you to run a certain distance affect your speed? Explain your reasoning.
Who would most likely develop an alcohol addiction in adulthood? gender race blood type age?
If sin(A - 30) = cos 60°, the number of degrees in the measure of angle A is
Which artery is best for manually checking your pulse?.
a take away 16 algebraic expression
180= 90+30+x? what is the value of x? make sure you give good reasoning
Solve for x. −5/ 12x−1/6≤5/6 Drag and drop a number or symbol into each box to correctly state the solution.
According to the graph above, the population gap between the United States and Japan is __________. A. widening B. shrinking C. unchanging D. undetermined
Sasha wants to compare /8 and /4 on a number line. What is the first step she should take to do this?