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

Cost of TV is $200.00. There is a 6% sales tax. How much tax will there be? *
A beach ball has a diameter of 15 inches. What is the volume of the beach ball?​
PLZ HELP ASAP ASAP PLZ HELP HELP
PLEASE HELP Look at the images, read the sentences, and match each sentence with its correct image. Image 01, A family with parents, grandparents, children, and
expand and simplify (x+4)(x-7)
An Elected official in Rome a President b Magistrate Representative Holy Lord
What event is NOT part of the process of DNA replication? Group of answer choices Ribosomes are constructed Hydrogen bonds are broken by an enzyme The strands a
The height of a cylinder is 10 and the area of a base is 36π square units. What is the volume in cubic units?
On Saturday, Lukas drove 4x – 5 miles. On Sunday, he drove 3x – 10 miles. What is the difference in miles driven?
Help me please and thank you