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

When a victim is bleeding, the first thing you should do before starting first aid is
PLS HELP; MARKING BRAINLIEST Which of the layers shown is an aquifer? O 1 O 2 O 3 O 4
Calculate the pH of a buffer solution obtained by dissolving 18.0 g of KH2PO4(s) and 35.0 g of Na2HPO4(s) in water and then diluting to 1.00 L.
please help !!!!! idk how to do this
Explain why the British supported the North even though it relied on cotton. please
We use the proportion of individuals with the recessive phenotype to calculate the frequency of the recessive allele (q). Why can't we calculate the frequency o
Describe the congruence transformation that maps ΔABC onto ΔA′B′C′ in the given figure. Question 9 options: A) Reflection along x-axis; Translation: (x, y) → (x
whether all the democracies have their own constitution or not ? explain​
Cost reduction is still the number one priority for many supply chain executives, according to the MHI and Deloitte survey. Select one: True False
Write 0.00000414 in scientific notation.