LogiQuest
Back to Generics
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

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.