C# Calculate items in List<int> values vertically

Posted by Deepu on Stack Overflow See other posts from Stack Overflow or by Deepu
Published on 2010-06-16T09:40:46Z Indexed on 2010/06/16 9:42 UTC
Read the original article Hit count: 240

Filed under:

Hi Experts,

I have a list of int values some thing like below (upper bound and lower bounds are dynamic)

1, 2, 3

4, 6, 0

5, 7, 1

I want to calculate the column values in vertical wise like

1 + 4 + 5 = 10

2 + 6 + 7 = 15

3 + 0 + 1 = 4

Expected Result = 10,15,4

Any help would be appreciated

Thanks

Deepu

© Stack Overflow or respective owner

Related posts about c#