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

all numbers that give 62.8 when truncated to 1 decimal place
Which body system is correctly paired with its function? circulatory — transports materials for energy release in body cells digestive — produces hormones for
Something nice to tell a girl
(100 POINTS!!!!!!!!!! Please do this assignment for me)In this assignment, you will research the connection between physics and a career in satellite technology
How can almanacs be used as references?an almanac is a thesaurus.A. TrueB. False
What is the shortest delay time, in milliseconds, that wouldcause two 65 Hertz sine waves to be 30 degrees out of phase? Roundyour answer to the nearest hundred
À partir d’un exemple, expliquez l’origine de la diversité génétique au sein d’une espèce.
what is the theme of the poem the toy?​
Samuel earned $900 last month. He worked 60 hours last month. What is his hourly pay? a. $12.50 b. $15.00 c. $10.00 d. $14.00
What is the full form of WHO?