A

Admin • 828.03K Points
Coach

Q. What will be the output?

Code:
var nums = new int[]{2,4,6};
Console.WriteLine(nums.All(n => n % 2 == 0));
  • (A) True
  • (B) False
  • (C) 0
  • (D) Compilation error

Explanation by: Admin
All numbers are even.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.