Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Learning linq 1
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int[] numbers = {1, 3, 4, 8, 9, 7, 4, 5, 6, 3, 2, 8, 10}; var lowNuns = from n in numbers where n < 5 select n; Console.WriteLine("Lower than 5"); foreach (var x in lowNuns) { Console.WriteLine(x); } var bigNums = from x in numbers where x >= 5 select x; Console.WriteLine("Gigger or equal than 5"); foreach(var x in bigNums) { Console.WriteLine(x); } } } }
run
|
edit
|
history
|
help
0
UF pc
exception implicit toString
SADCAX AAAA
sdfghjikujyhtgrfedwcdf
Implementing two interfaces with the same method signature
Find Max Number Of Occurences in an int array
3
Test equality...1
tamrin
Matrix Pattern