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

A box contains 10 items, of which 3 are defective and 7are non defective. Two items are randomly selected, one at a time, with replacement, and x is the number
In some towns and cities in America, some of the youth of today are getting into trouble after the traditional school day ends. However, there is a possible sol
I need help with these two questions
Compare. Use <, >, or = to complete the statement. (2^7)^2 2^10 * 2^2
Can a tooth infection cause sinus problems
What does "Hola amigo, mi amó Autismo Robotrix!" mean?
Solving two-step equations....…
Biology shows us the fossil record and comparative anatomies. Chemistry shows us that organic molecules can come from inorganic matter. Geology shows us that or
What caused austria-hungary to declare war on serbia, which eventually sparked world war i?
describe how the ultrasound technology or research involves electromagnetic or sound waves