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

The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
What's 5 divided by x squared explain
find the sum. write each mixed number in simplest form 4 7/8 + 5 1/4
A blue rope is 3 times the length as a red rope. A green rope is 5 times as log as the blue rope of the total length of all 3 ropes equals 508.25m what is the l
What is the creepiest sounding scale? What scale would u use for writing creepy music in other words
Factor the expression. If the expression cannot be factored, say so.
The inner and outer Radii of a cylindrical pipe are 5 cm and 4 cm respectively. find the area of cross section of the pipe.
josh wanted to buy a bicycle but didn't have enough money. After josh told his troubles to sam slick, sam said,"I can fix that. see that fence? each time you ju
What is the creepiest sounding scale? What scale would u use for writing creepy music in other words
Does an owl have a backbone?