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

Which word is an interjection commonly used in advertising?
The formula C = 20x + 5 models the cost of New York Yankees T-shirts, where C is the cost and x is the number of shirts sold. Choose ALL TRUE statements in the
What is the lateral area of the rectangular prism? Assume the prism is resting on its base. A. 135 in2 B. 270 in2 C. 300 in2 D. 310 in2
Al washed a car in 6 minutes. Fred washes the same car in 8 min. How long dies it take Al and Fred to wash the car together?
what is the meaning or definition of fighting-gear??
The circumference of a circle is 6.28.What is the area of the circle?
The plans for a shed call for a rectangular floor with a perimeter of 204 ft. The length is two times the width. Find the length and width.
The Radius of a sphere is 5 feet. find the area of the great circle of this sphere
The Radius of a sphere is 5 feet. find the area of the great circle of this sphere
Find an equivalent ratio for 22/55 then write the proportion ?