C# Conditional operator

后端 未结 0 1797
感动是毒
感动是毒 2021-01-18 05:11

age< 18 ? Console.WriteLine("Too Young") : Console.WriteLine("Old enough");

I am trying to get this line of code to run but keep getting CS0201

相关标签:
回答
  • 消灭零回复
提交回复
热议问题