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

Pls help me its in the picture
Which statement is most likkely to applyto a cell that has DNA whitin its ytoplasm
30 POINTS And please be fast
Which level of organization is formed when a group of organs work together to perform complex functions?
1. Make a list of festivals that you celebrate. Then, share your list with your friends.​
a store sign reads "Take 75% of the original price when you take an additional 15% off the sale price, which is 60% off the original price." Is the stores sign
Find the surface area of each figure. Round to the nearest tenth if necessary.​
An advertisement for peanut butter pictures a happy mom and child using the product. It says, "Moms who love their children, buy [name of product]” In this ad,
(b) The force, F, between two objects is inversely proportional to the square of the distance, d, between them. The distance between two objects is increased by
-p/3-8=3 what is the variable​