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 answer choice shows 87.962 written in expanded form? A. 80 + 70 + 0.9 + 0.06 + 0.002 B. 80 + 7 + 0.9 + 0.06 + 0.02 C. 80 + 7 + 0.9 + 0.06 + 0.002 D. 8
write the listed waste in thebox in its designated trash bin below.​
Me pueden ayudar a buscar un poema que tenga el Verbo Transitivo. ( Se los agradeceria mucho)
If you are traveling at 30 MPH you should take your foot off the accelerator how far from a stop sign?
Thoroughly define "Continental Congress
What is the difference between a pure market economy and a mixed market economy
A family is comparing different car seats. One car seat is designed for a child up to and including 35 lb. Another car seat is designed for a child between 18 l
6.4 meters + 14.7 - 23.2 = ?
Select the coefficients in the following expression!
Select all that apply. A graph shows _____ in picture form. variables facts color statistics sums data Note: There is not just one answer