Skip to content

Instantly share code, notes, and snippets.

@aalmada
Created June 21, 2021 16:37
Show Gist options
  • Save aalmada/99d8b7e5620eb2e43da5663a092f8cc7 to your computer and use it in GitHub Desktop.
Save aalmada/99d8b7e5620eb2e43da5663a092f8cc7 to your computer and use it in GitHub Desktop.
static int Sum(List<int> source)
{
var sum = 0;
for (var index = 0; index < source.Count; index++)
sum += source[index];
return sum;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment