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 number line represents the solution set for the inequality 3(8-4x) < 6(x - 5)? 5 -3 -2 -1 0 1 2 3 4 5 + –5 + + -3 -2 + -1 + 0 + 1 + 2 3 4 + at –5 -3 +
find the value of cos 140° + sin 10° + sqr root (3) cos 70°please guys help me​
The total cost f(x), in dollars, for renting a bike for x hours is shown: f(x) = 10 + 20x What does f(10) represent?
Which of the following is NOT true of chemical digestion? a. it consists of a series of catabolic reactions b. it uses a variety of enzymes c. it includes ch
The sumof 2 consecutive numbers is 17.bwhat are the numbers?
what is the arc length if theta = 7 pi over 4 and the radius is 5?
Describe the different types of membrane transport and how they relate to concentration gradients and energy.
This type of cell division leads to formation of egg or sperm.
Can someone help me please !!!!
The first law of thermodynamics states that ________________.