Skip to content

Instantly share code, notes, and snippets.

@robertgreiner
Created January 4, 2012 20:23
Show Gist options
  • Save robertgreiner/1561940 to your computer and use it in GitHub Desktop.
Save robertgreiner/1561940 to your computer and use it in GitHub Desktop.
int sum = 0;
foreach (int num in numberList)
{
sum += num;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment