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 half-life of fluorine-20 is 11.4 seconds. After _______ seconds, 1/4 of the original amount of fluorine-20 will remain
Bosnia was formerly a part of: Yugoslavia Sarajevo Croatia Serbia
Subcultural deviance theory is most consistent with which type of ethical system
"Yonder sky has wept tears of compassion" is an example of A. personification. B. consonance. C. assonance. D. alliteration
Which group most strongly embraced the ideals and principles of the Enlightenment? a. the nobility b. the bourgeoisie c. the peasant class d. the urban clas
What field of work was shared by the parents of the man with the middle name Gamaliel who served as a U.S. Senator from 1915-1921?
What was the Sepoy Rebellion, and how did it change colonial India?
what were many of the stained glass windows of the middle ages meant to do
The two-way table shows the number of girls and boys who are right-handed or left-handed. What percent of left-handed people are girls? % Right-hande
75 of what number is 51