There are several ways to find the sum of a list of numbers in C#. Here are two common methods:
Using a loop:
main.cs183 chars8 lines
Using LINQ:
main.cs147 chars4 lines
Both methods will give you the same result, but the LINQ method is more concise and can be easier to read for some people.
gistlibby LogSnag