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

is 49 prime or composite
Which professions best characterize the jobs held by people in the middle class at the turn of the twentieth century?
In which year did Congress propose a confederation A 1776 B 1777 C 1787 D 1789
Sociologists distinguish between these three types of norms: a. Folkways, mores, and laws. c. Mores, laws, and cultural traits. b. Cultural traits, folkways,
which of these can be considered data ? A. facts B. information C. belief D. all of the above
When the colonists said "no taxation without representation," what did they mean? PLEASE HELP ME PLEASE ASAP
Trenches in the ocean are A) close to the shore. B) on the continental shelf. C) part of the intertidal zone. D) the deepest part of the ocean.
The true color of water is a. clear. b. greenish blue. c. sky blue. d. green. E. white.
65/.25 pls help asap
The ally of the United States in the Gulf War was Kuwait. a. True b. False