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

Advertisers hope that consumers will believe that things in the ads will _____. A. transport B. transfer C. transitive D. transient
Which simple machine is best used to split apart an object?
(27p6)5/3 in simplify form. 6 and 5/3 are exponents.
name another career that combines science with another interest
The temperature dropped 3 °C every hour for 5 hours. Write an integer that represents the change in temperature.
One of the worst effects of media on children is
Which is a way to check the answer 120 divided by 4 = 30
Isopentane is a compound containing a branched carbon chain. a newman projection is given for six conformations
What is (10+y)^2-y^2=3x+12 in standard form?
The selling price for a classic car is $14000, which is $2500 less than three times its original price. What was the original price of the car?