Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Created July 6, 2014 18:25
Show Gist options
  • Save JoshVarty/83efcf9cf07b5a114be6 to your computer and use it in GitHub Desktop.
Save JoshVarty/83efcf9cf07b5a114be6 to your computer and use it in GitHub Desktop.
int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };
int oddNumbers = numbers.Count(n => n % 2 == 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment