If I have an Array of doubles below, using linq how do i select element 2 through 4 to multiply together. I want to do this using linq,
(Array1[0].item2 = 1.0; * Array2[0].item2 = 1.0;) = 1
(Array1[1].item2 = 2.0; * Array2[1].item2 = 2.0;) = 4
(Array1[2].item2 = 3.0; * Array2[2].item2 = 3.0;) = 9
(Array1[3].item2 = 4.0; * Array2[3].item2 = 4.0;) = 16
(Array1[4].item2 = 5.0; * Array2[3].item2 = 5.0;) = 25
Loading
VulpesPosted Jan 22, 2012, 7:12 PM
http://www.c-sharpcorner.com/Forums/Thread/157842/C-Sharp-summation-equation-help.aspx