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

The sum of a number and 18 times its reciprocal is 11. Find the number(s). Let x represent the unknown number. The Reciprocal of x is____?
Locate the gerund and identify its use.Wrestling alligators seems both foolish and dangerous.
what is the cubic root of - 250
The number 6 is halfway between 4.5 and 7.5.Answer the missing numbers below.The number 6 is halfway between 2.8 and .......The number 6 is halfway between -12
why is red onions purple
What is the formula for the volume of a cuboid?
The diagram shows a patio in the shape of a rectangle. The patio is 3.6m long and 3m wide. Mathew is going to cover the patio with paving slabs. Each paving sla
Why was there growing involvement of the USA in Europe in the years 1945-48 ??
The number 6 is halfway between 4.5 and 7.5.Answer the missing numbers below.The number 6 is halfway between 2.8 and .......The number 6 is halfway between -12
What is the electron configuration of helium