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

After the death of harsha the rajputs ruled over numerous small states in_________. a. northern india b. southern india c. eastern europe d. southern asia
Arturo invests $2700 in a savings account that pay 9% interest, compounded quarterly. If there are no other transactions, when will his balance reach $4550?
Who led revolts against the Liang dynasty?
Why does Romeo go to the party?
The main trade route that connected China and Rome was called the ____. A) Satin RoadB) Silk RoadC) Han RoadB) Roman Road
What body of water does the st. lawrence river flow into? a. pacific ocean b. atlantic ocean c. gulf of mexico d. lake superior
4/y+3 + 5/y-6 = 9/y+4 . solve the equation
1. This question is based on the following passage. Both Seagulls and wild geese are large birds. They're also similar in that both kinds of birds can fly o
Which of the following inequalities matches the graph? (see attached photo) A y less than or greater to –one halfx - 4 B y > –one halfx - 4 C y < –one hal
How do you convert 56 kilometers to inches