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

find inverse equation for y=(x-3)^2
what is the value of x
Is food a fuel? Explain your answer. a ?​
what is fractional distinction?​
Which type of rights ensure equal treatment under the law? O substantive rights O procedural rights O unenumerated rights O civil rights
¿Que son las Palabras variables?​
Find the values of x for which the denominator is equal to zero for 3x+5/x-6 . x = 6 none x = −5 x = −6
each of two computers can process bills at 160/min a newer model can process bills at 200/min after the first two computers have worked 1.5 min they are joined
In 1992, South Dakota's population was 10 million. Since then, the population has grown by 1.4% each year. Based on this, when will the population reach 20 mill
Level Find the area of the circle. 37.68 ft? 28.26 ft? .r=0 ft 6 9.42 ft? 18.84 ft? 113.04 ft?