Array1 = [10, 15, 25];
Array2 = [5, 12, 9];
Array3 = [0, 0, 0];

for (i in a) {Array3[i] = Array1[i] - Array2[i];}


On Friday, May 23, 2014 6:18:41 PM UTC+2, I.O.S wrote:
>
> Hi All,
>
> I have 2 arrays and I would like to subtract the contents of one from the 
> other and store in another array.
>
> Ex:
> Array1 = [10, 15, 25]
> Array2 = [5, 12, 9]
>
> Results should be
> Array3 = [5, 3, 16]
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to