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

Please help ASAP. Need it for homework
The constitutional question At the heart of US v. Nixon is Best described as
Which best identifies a characteristic of narrative poetry? A. includes paraphrases and cited quotations B. Does not rhythm C. includes characters that are invo
Why did early computers require two rooms? a.one room for the computer and the second for the computer data b.one room for the computer and the second for the
You received a 75 gift card to your favorite store to buy new shirts. if shirts cost 13.99, how many you can buy??
Why was building the aswan dam was a good idea?
Which answer best describes the function of the pancreas?
what is one of the factors that helped buddhism spread through china
Why did the middle class expand in the early 1900s?
Four trends in the past decade have significantly influenced the landscape of global marketing. one of them is