Ask Question
18 November, 08:22

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

+2
Answers (1)
  1. 18 November, 11:12
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers