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

Please help me with Science?.
Exiting the subway, ray is suddenly filled with escalating feelings that he cannot breathe, that he may die, and that something bad is going to happen to him. c
Plsssss helppppppppppp
What is sustainable development? A. development that limits the amount of pollution businesses can release into the atmosphere B. development that meets current
Where would a positive test charge have the least potential energy?
HELLO. I NEED HELP ON A HANDFUL OF QUESTIONS. PLEASE HELP. ​
PLEASE HELP ASAP!!! CORRECT ANSWER ONLY PLEASE!!! I CANNOT RETAKE THIS AND I NEED ALL CORRECT ANSWERS ONLY!!! Look at the following diagram of two bar magnets a
From the data below, calculate the total heat (in j) needed to convert 0.782 mol of gaseous ethanol at 300.0°c and 1 atm to liquid ethanol at 25.0°c and 1 atm
Drivers who drive recklessly while experiencing intense emotions exercise a lack of ___
Find the unknown angle measure by solving for the given variable. Answer Choices: 32,48,96,24,36,64