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

To continue a sequence in adjacent cells, such as months of the year, use the ____ feature of Excel.
a student pays $48 on school supplies where the sales tax is 7% . How much will he pay in total?
What is meant by evolution
When writing a direct quotation, which word or words are always capitalized? a.all of the nouns b.all important words c.the last word in the quotation d.the fi
IF JOHN RAN A 5-KILOMETER MARATHON HOW LONG WAS THAT IN METERS?
How is volume similar and different to mass?
What are the benefits of volunteering?
explain why each mineral has its own properties, different from every other mineral
need help please dont get ir
Find the greatest common factor of 21 and 49 .