+ 3
How do calculate the sum of numbers in an array using c language
Array and c programming language
2 odpowiedzi
+ 4
Let me give you a pseudocode and then you try it yourself:
anArray[size]
sum = 0
index = 0
while index < size
sum = sum + anArray[index]
index = index + 1
It brings the idea that iterate through each elements in the array and sum them up one by one to the variable sum.
+ 2
Using loops:
https://www.sololearn.com/learn/3734/?ref=app