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

what is the area please help
A square ice cream box has sides that are 19 feet long. What is the perimeter of the ice cream box?
What is 10 rounded to the nearest whole number? a. 2244 b. 3205 c. 3846 d. none of the above
Describe how buying on credit and installment plans work and why they can be dangerous to an economy.
Will give brainlst Have a nice day
HELP I WILL MARK BRAINLIEST BUT YOU HAVE TO BE CORRECT!! 37 POINTS!!! To formulate the Hardy-Weinberg principle, what imaginative leap did both Godfrey Hardy an
The sum of two numbers is the same as four times the smaller number. If twice the larger is decreased by the smaller number, the result is 30. Find the missing
Identify two chords. A. FG and Hi B. DE and FG C. DE and HI
A small car is traveling at a speed of 60 mph on the highway. In the next lane, a large passenger bus is traveling at the same speed.
Bobby calculates the mean number of goals for each of the players on a hockey team in the set {4, 7, 5, 8, 12, 2, 3, 5, 7}. Determine the mean absolute deviatio