C#1.25/if语句求闰年/三目运算/switch/Goto与while
1.if if…else if…else if…else
2.三目运算
?(是否) 是:否
?(是否) 是:(?(是否) 是:否)
3.switch:判断条件比较多,实现起来代码过长,不便于阅读。
4.循环 Goto / while
goto
1.if if…else if…else if…else
2.三目运算
?(是否) 是:否
?(是否) 是:(?(是否) 是:否)
3.switch:判断条件比较多,实现起来代码过长,不便于阅读。
4.循环 Goto / while
goto