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

Hot dogs and hot dog buns are complements. if the price of a hot dog falls, then
A low area of land often forms between hills or mountains. This low area is called a valley. Which of the following might cause a valley to form?
how many different allergy notations can be made in an electronic health record during the same encounter
What was Justinian plague
Name the property of equality that you would use to solve 2 = 3/4 + x
Line CD passes through points C(3, –5) and D(6, 0). What is the equation of line CD in standard form?
Solve for e E=mc2 M=3 C=6
A manufacturing process has a 70% yield, meaning that 70% of the products are acceptable and 30% are defective. if three of the products are randomly selected,
How long was the average workday during the early years of the industrial revolution?
"developmentally appropriate" means that select one: a. a food is preferred by a majority of children. b. an activity is suited for a child's ability level.