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 do you solve this?
if vx=9.80 units and vy=-6.40 units, determine the magnitude and direction of v
(4÷y+2) +(2÷y-3) =(6÷y+6)
A fruit company delivers its fruit in two types of boxes: large and small. A delivery of 5 large boxes and 3 small boxes has a total weight of 110 kilogr
How should I solve question 27?
Hitler was an example of what kind of authority?
The figure illustrates the apparatus for a tightrope walker. Two poles are set y = 50 feet apart, but the point of attachment P for the rope is yet to be determ
What economic crisis did president van buren face during his tenure?
The service industry represents ________ of the value of the u.s. economy.
What happens to the amount of hydrogen bonding between water molecules as water is heated up?