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

What is the amplitude of a wave related to
PLEASE HURRY I NEED HELP SOS!!!! (10 POINTS)verify sin(360º-ø)=-sinø
Fact or option Fourth of July is celebrated in July.
Please answer the attached question by selecting of the the given answers.
What is the shape of the cross section?
31.) It is given that f(x) = ax^(3) + bx² -3, where a and b are constants.(a) When f(x) is divided by x - 1, the remainder is 0; when it is divided byx+1, the r
Why does dough rise very quickly in the day but it takes much longer to rise in the night ?
Simplify the given expression. (–3x2 – 9x + 17) – (15x2 + 20x – 4)
How does Linda’s grandmother shame Dr. Flint?
the difference between close and open circuit using ohms law​