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

9. Choose the equation that represents the graph below:
when is the right time to have unprotected sex without getting pregnant
Select three different industries of your choice that experienced significant fluctuations in exports between 1920 and 1936. What factors might explain the fluc
YALL I NEED ANSWERS FAST 1. Who were the Moors? *O the Almoravid and Almohad rulers of al-Andalus *Christians who lived under Muslim rule in al-Andalus *North A
A rectangular swimming pool. Measures 16m by 20m. A path of uniform width is built around the pool. If the area of path is 100m^2, find the width of the path, g
Summary of the journey to find a way to save the country (time, place)
4.3 While a train is standing still, its smoke blows 12 m/s north. What will the resulting velocity be of the smoke relative to the train if the train is moving
If you take half my age and add 7, you get my age 13 years ago. How old am I?
Find the slope of the line for each pair of points (-17, -5) (15, -13)
A solution is made by dissolving 20 ml of acetic acid in 180ml of water. Calculate its volume concentration​