Sum of elements of an array




Algorithm:



Step1: start

Step2: read the array elements

Step3: add each elements of the array until the end of the array and store to sum.

Step4: print sum

Step5: stop



Comments