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 Sacré Coeur is located in the ________________ sector of Paris.
is perpendicular to and passes through point C(5, 12). If the coordinates of A and B are (-10, -3) and (7, 14), respectively, the x- intercept of is ____. The
Which word defines ���lucid��� best? hideous rose-colored broken clear
A hiker walks 200m west and then walks 100m north. What is the magnitude and direction of her resulting displacement?
Why did people immigrate to the United States in the nineteenth century?
Robert is putting money into his bank account every week when he gets his pay check. He has $200 in his account already. If he puts $50 in each week, how long w
a example of desert
can you help me solve it
What is the distributive property of 7*86
what does 3m-3(m+8)>3m equal