Created
June 21, 2021 16:37
-
-
Save aalmada/99d8b7e5620eb2e43da5663a092f8cc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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