6
What is the output of the following program?
string r = 5 switch { < 0 => "neg", 0 => "zero", _ => "pos" };
Console.WriteLine(r);Medium
What is the output of the following program?
string r = 5 switch { < 0 => "neg", 0 => "zero", _ => "pos" };
Console.WriteLine(r);Log in to join the discussion.