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

Round 61.373737842 to the nearest ten-millionth ​
using the distributive property, rewrite the expression (-2x - 8) (-6) please help and explain how to do it
What is enterprise value.
It takes 39 pounds of seed to completely plant a 4-acre field. How many acres can be planted per pound of seed?
same, but balanced nevertheless Describes a composition that contains very little, if any, energy.
Help needed! Please and thanks
Choose the statement about sharecropping in Georgia that would have been true after the Civil War. A) Many people were able to purchase their own farms through
In a(n) ________, an individual or firm contracts with a parent company to set up a business or retail outlet.
Are there Male Socialites?
Which of the following molecules is broken down in cellular respiration, providing fuel for the cell?.