5
What is the output of the following program?
var nums = new[] { 1, 2, 3, 4, 5 };
Console.WriteLine(nums.Where(n => n % 2 == 1).Sum());Medium
What is the output of the following program?
var nums = new[] { 1, 2, 3, 4, 5 };
Console.WriteLine(nums.Where(n => n % 2 == 1).Sum());Log in to join the discussion.