using System; using System.Collections.Generic; using System.Linq; class Hauptprogramm { public static void Main(string[] args) { List zufallsZahlen = new List(); Random rg = new Random(); for(int i=0; i<50; i++) zufallsZahlen.Add(6.0*rg.NextDouble()); var highNumbers = from z in zufallsZahlen where z>5.5 select z; foreach(var x in highNumbers) Console.WriteLine(x); } }