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

During which phase does Earth see more than half of the moon’s surface?
I found a place that will give me a 20% discount if I spend over 50 $.My bill is $75. How much money will I save
(Help) Please I need a math help.....
24.50 divided by 6 PLZ HELP! I DON'T HAVE MUCH TIME!
What best describes the cell theory
Which is not considered a healthy alternative that can be used to cut cravings? rapid breathing meditating walking drinking water
Explain how the influence and reach of the newly reformed Ku Klux Klan differed from its 1866 iteration; why were these racist ideas experiencing a resurgence t
What new method was used to choose presidential candidates in the 1830s?
someone help please!!!
20 POINTS! WILL MARK BRAINLIEST! ANSWER QUICK! GOOD LUCK! :) (EASY) Type a world problem that involves comparing unit rates.