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

what is the kingdom and phylum of a euglena protest?
A flight instructor charges $50 per lesson, plus an additional fee for the use of his plane. The charge for the use of the plane varies directly with the square
What is 0.05 percent of 6.5?
The unstated purpose of the Alien and Sedition Acts was to (A) unite the nation in time of danger (B) deport immigrants who were becoming too numerous (C) prote
how do day and nightat uranus's equator change asthe uranus revolves around the sun?
If it takes Mark twice as long to earn $6.00 as it takes Carl to earn $4.00, what is the ratio of Mark’s pay per hour to Carl’s pay per hour?
China, Korea, and Japan share cultural similarities in part due to their (1) clashes with Russian imperialists (2) shared river systems (3) contacts through tra
How many grandparents have my grandparents? who can solve it is very good on maths! it is just a lpgic problem! i know the answer :)
what is the kingdom and phylum of a euglena protest?
what is the kingdom and phylum of a euglena protest?