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 boy jumps into a cold swimming pool and his body temperature goes down. His muscles, blood vessels, and nervous system work together to restore his body tempe
how far away is all 9 planets from the sun
If 6x −3 = −5x +7, then x =? Can someone explain this one?
Why can't plants and animals use the nitrogen directly from the atmosphere? Answer A.There is not enough of it in the air. B.Nitrogen gas contains the element i
Who benefitted from the corrupt bargain?
which accurately describes a tangent
How many months is 0.75 of a year
A rectangle has an area of 30 square units and a perimeter of 34 meters.what are the dimensions of this rectangle
Which of the following nutrient cycles has its largest reservoir in the atmosphere? A) Carbon cycle B) Nitrogen cycle C) Potassium cycle D) Phosphorus cycle E)
What is/was the American dream? I need at least 10 bullet points about what the American dream was please somebody help me