插入缺失的部分以完成以下“简写 if...else
语句”(**三元运算符**)
int time = 20; string result = @(1)time < 18@(1) @(1) "Good day." @(1) "Good evening."; Console.WriteLine(result);
int time = 20; string result = (time < 18) ? "Good day." : "Good evening."; Console.WriteLine(result);