
-----------------------------------
kid105
Tue Jan 12, 2010 10:24 pm

how do i find the sum of 10 numbers in the array in turing?
-----------------------------------
What is it you are trying to achieve?



What is the problem you are having?



Describe what you have tried to solve this problem



Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)








Please specify what version of Turing you are using


-----------------------------------
Euphoracle
Tue Jan 12, 2010 10:30 pm

RE:how do i find the sum of 10 numbers in the array in turing?
-----------------------------------
When you iterate through the array, you will have access to each value.  Sum them.


var sum : %fill this in

%iterate using a for-loop
for i : % fill this in
	sum := %fill this in
end for

