Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
|
Vector summing while loop
Posted:
Dec 6, 2012 9:04 PM
|
|
How do you perform a while loop that sums a vector termwise?
example,
x = [1,23,43,72,87,56,98,33]
How would I find the sum off all these numbers using a while loop without actually using sum(x)?
|
|
|
|