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

Compare and contrast the experience of being an American in the 18th century and today
help this will help me
What is the equation of A line in point slope form that passes through (-8, 1) and has a slope of 5/6?
HELP ADAP. What's the direct object in the following sentence? Estudio los verbos todos los días. Group of answer choices los verbos los días estudio todos
Karen and Al obtained a 30-year fixed-rate, fully amortized loan when they purchased their home. Which statement is true
How many military died during trump administration.
Triangles LMN and RWN are similar right triangles. What is the length of WR? Round your answer to the nearest tenth.
how does check and balances affect both domestic and foreign policy?
Free Brainlyest!!!!!!
Any number which is divisible by both 3 and 5 must…..A. be a factor of 15B. be an odd numberC. end with a fiveD. be a multiple of 15​