Contact: aviboots(AT)netvision.net.il
39,907 questions
51,839 answers
573 users
using System; using System.Linq; class Program { static void Main(string[] args) { int[] arr = { 1, 2, 3, 4, 5 }; int product = arr.Aggregate(1, (x, y) => x * y); Console.WriteLine(product); } } /* run: 120 */