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

"With malice toward none, with charity for all, with firmness in the right as God gives us to see the right, let us strive on to finish the work we are in, to b
which statement describes the impact of technology on ww1?
Write a 3-4 sentence summary of “Offshore Oil Rigs.”
Which is the value of this expression when p = - 2 and q = -1?
A solution has a pH of 12. Is it considered an A) acid B) base C) neutral substance
8/9(3i+27)=2/9i+68 please help i'm tired and i can't think straight
CCN and ActMedia provided a television channel targeted to individuals waiting in supermarket checkout lines. The channel showed news, short features, and adver
Select the correct answer. Which point of view is used in this excerpt from "Advice to Youth" by Mark Twain? Go to bed early, get up early-this is wise. Some au
-How did the Aryans influence Indian civilization?
Traumatic stress disorder