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 average atomic mass of chromium is 52.00 amu. What is the mass of 3.0 mol of chromium?
after the defeat of carthage in the second punic war rome fought several wars within the eastern Mediterranean, with what unexpected consequence
A student reports three trials to determine the density of an article and records the data as shown in table below. The accepted value of density is 9.6 g/mL.
grade 5 math. How would I write a ratio for a project when asked to compare prices from two stores, IE 32 slices of texas toast for $7.99
16/18 reduced to lowest term
Choose the correct solution and graph for the inequality. -y/2 less than or equal to 3 Y less than or equal to 6 Y less than it equal to -6 Y greater than or eq
Job security is an example of maslow's safety needs (2pts) true false
$79.95 rounded to the nearest cent
Ayuda Claudio fabrica barriletes, para cada uno usa 2 pliegos de papel y 4 varillas. Si tiene 20 varillas y 7 pliegos. Para cuantos barriletes le alcanza??? A)
I guess it is easy for those who have never felt the stinging darts of segregation say wait for means