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

• An equation written as Ax + By = C, where A, B, and C are real numbers is said to be in the
H2SO4+2NaOH=Na2SO4+2H20 NAME THE SALT PRODUCED?
Why was it important that civil service positions were not hereditary? A. so officials would be well-qualified B. so officials would be diverse C. so offici
Solve for y in the following equation: -4y + 8 = 9
1The Treaty of Verdun: divided Charlemagne's kingdom settled Danish land ended iconoclasm 2The Vikings were also called: Norsemen Magyars Slavs 3A famous illumi
Discuss two ways gravity contributes to erosion
A website's ____ page provides basic information about the individual or organization and includes a navigation bar with links to other pages of information.
Find the vertex form of a parabola with a vertex of (-2, 12) that passes through (-4, 0)
why is holmes a quick thinker​
I need 5 differences between a citizen an alien​