Ask Question
4 September, 14:55

Q) write a code that reads a given array and calculates the SUM of its elements.

+3
Answers (1)
  1. 4 September, 18:04
    0
    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!
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Q) write a code that reads a given array and calculates the SUM of its elements. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers