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

Resource partitioning is best described by which of the following statements? A) Competitive exclusion results in the success of the superior species. B) Slight
Which democracy Is citizens participate in government? A. Direct Democracy B. Representative Democracy
When there is not enough oxygen, what is glucose converted to in animal cells?
Write sentences that completely describe each of the chemical reactions shown in these skeleton equations. 11.1
solve the equation 3/2 + b = 7/4 what's b?
how many solutions are there to the equation below? 8 (x-3) = 8x-24
Please help this is my last question
Fertilization takes place when (2 points) the egg is split in two sperm is formed chromosomes are formed the sperm enters the egg
r(x)=x-3 s(x)= 4x²write the expressions for (s+r)(x) and (s-r(x) and evaluate (s.r)(2)​
according to the greeks "golden mean "​