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

a=lw what is the value of w if A=184cm squared and l=23cm
Which of the following statements is part of the cell theory? All cells come from pre-existing cells. All living things are made up of one or more cells. Cel
Find the ratio in simplest form. 30 minutes to 2 hours
How to I answer these please help
can someone give me the correct answers for all of the unanswered question. the question are in the picture below. plllllllllllllllllllllllllllllllllllllleeeeee
Please help me !!! ( the directions are to factor each polynomial by grouping. Check your answer by FOIL ) Answer what you can correctly for a brainliest and al
What is the diameter of a copper sphere that has the same mass as a 1.00 cm × 1.00 cm × 1.00 cm cube of aluminum?
Describe three characteristics of the Psalms that help answer the question: “What are the Psalms?
What did the Underwood Tariff Act of 1913 do?
Courts that try cases are called courts of