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

What is 6,007,200 and 32,005,008 in expanded form?
The area of a square is 81 inches what is the length of one side
how can a physical map help explain the historical development of a country
Identify as expression or equation 9=2x-4
brad grew 4 1/4 inches this year and is now 56 7/8 IN tall write and solve an equation to find Brads height at the start of this year. show that your answer is
put in accesnding order 8.08, 8.081, 8.09, 8.008
how to put risk and wages in a sentence
when i take half of my number and add two, i get twenty four
what is the value of the 4s in 344?
write 19/20 as a decimal without using long division