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

PLZ HELP I'LL GIVE BRAINLY!!!!!! Which of the following words from Shakespeare's Julius Caesar is a loaded word? According to his virtue let us use him, With al
Ed works a normal 38 hour week. He then worked 22 hours of overtime at double his normal hourly rate of $8.90 an hour. How much will he earn for his total pay f
Answel higheet 25. A rollercoaster allows 6 in the corriage each time. How many ndes would be needed for 130 children? Answer ce learning 2012. You may photocop
write 0.004473 in scientific notation.
HELP PLS WHAT DO I PUT IN THE BLANKS
100 points plz help J qnswer this question
What is 9.1 plus 2.53
What is standard unit? Why is it necessary?
???? Help plz ?…. It’s a grade
Plz help 100 points!!!