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 area of a square tile is 49 square inches. Write the length of one side of the square time as a square root and standard from
how much physical activity should an adult have each week
amanda put two rectangles together to form a new rectangle .both rectangles have a height of 3 inches.the base of the other is 4 inches.if amanda puts 10 of eac
6/16 OR 30/80 WHICH ONE is bigger?
Write the ratio in three different formats: to , , and . Carlos biked 24 miles and ran 6 miles. Write the ratio of the distance Carlos biked to the to
How many electrons are in an Fe2+ ion? (1) 24 (3) 28 (2) 26 (4) 56
The equation of a line is 5x − 2y + 10 = 0. How do you write it in the form: y=mx+b?
What is the value of x? Round to the nearest tenth.
Read the following paragraph: One of the most popular dishes that people eat in Honduras is beans and rice. Each day, many Hondurans eat beans and rice for brea
what approaches meeting the challenge of the depression was president hoover against?