Select the result of the given code snippet: class Program { static void Main(string[] args) { int[] nums = { 16, 9, 25}; var posNums = from n in nums where n > 0 select Math.Sqrt(n); Console.Write("The positive values in nums: "); foreach (int i in posNums) Console.Write(i + " "); Console.WriteLine(); Console.ReadLine(); } }
Correct Answer: b) Code runs successfully and prints required output.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C# MCQ Questions