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 statements accurately describe West African kingdoms of the 1300s and 1400s? Choose all answers that are correct. A. Benin relied on trade with its nearby
Which of the following physical features divides mainland China from the Middle East? The Himalayas The Gobi Desert Three Gorges Th
Which emerged in opposition to the Missouri Compromise?.
Soil can best be described as the?
what is another name for the middle ages
Which war did Modernism follow?
How did the Hanseatic League punish those who did not follow their strict trade rules?
Which emerged after deindustrialization? free trade manufacturing-based economy oil surplus service-based economy stagflation
The cafeteria at midtown middle school surveyed 575 students about their favorite food. Find the number of students the responded for each of the following.
How did the rise of the Knights of Labor impact the Populist movement in the late 1800s?