Ask Question

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

+4
Answers (1)
  1. 27 July, 21:40
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers