summation elements for an array.

Back to topics list To post a new topic, please log in or register
avatar
34
izmnaari 2011.09.28 05:29
 

hello.

Some one cane help me to write a simple code that can i use to summation elements for an array.

tks.

 
avatar
3849
ubzen 2011.09.28 09:52 #
 
What have You written so far? Where are you Stuck? Show your codes using the SRC button above.
 
avatar
14167
RaptorUK 2011.09.28 11:36 #
 
izmnaari:

hello.

Some one cane help me to write a simple code that can i use to summation elements for an array.

tks.

while value<array size

summation += array[value]

value++

avatar
13008
WHRoeder 2011.09.28 18:13 #
 
izmnaari:
Some one cane help me to write a simple code that can i use to summation elements for an array.
  1. No Slaves here, learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.
  2. xxx summation = 0; for (int iArray = ArraySize(array) - 1; iArray >= 0; iArray--) summation += array[iArray];
avatar
4
yousefselim 2015.02.03 17:55 #
 

Thanks !!!!!!

 

Back to topics list  

To add comments, please log in or register