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

Which type of an art or architecture from Egypt has been adopted by the US government
How do you think the information about his parents' difficulties early in their relationship affected McCandless?
Everybody sings out, “Sold!” and rose up mad, and was a-going for that stage and them tragedians. But a big, fine looking man jumps up on a bench and shouts: “
Explain the importance of the ‘Bay of Pigs’ invasion for the relations between the USA and the Soviet Union
A number is divided by 4 and then 5 is added to the quotient.The final result is 1. Find the number a. 64 b.10 c.24 d.28
definition of california gold rush
help please brainliest!!!
PLEASE HELP! Which lines are perpendicular?
At a restaurant the bill was $35.10 with a 15% tip added on. How much is the total bill, rounded to the nearest whole cent?
Simple 8th grade algebra. Need it answered ASAP!! More on my account