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

The process of chemical cycling is known as a biogeochemical cycle because it A. takes places over a long period of time B. withdraws the
why did Mr Collins come to the Bennet family looking for a wife?
what might be learned from an incorrect hypothesis
Which additional word in the poem should be capitalized? Coyote In the night, it prowls alone hidden from view, Stalking prey. Before dawn, Coyote howls.
Round 46.895 to the nearest tenth
Gina rented shoes, bowled 3 games, and bought 1 order of nachos. she used a coupon for 1/2 off the price of her bowling games. What was Ginas total cost before
the bombing of Hiroshima and Nagasaki resulted in
How has water influenced the development of civilization in Africa
Companies raise funds to expand their business by
Tu as quels cours le jeudi matin?