VB.NET
Dim a As Integer = 59
Dim str As String = IIf(a > 59, "大於60", "小於60")
=
Dim str As String=""
if a >59 then
str="大於60"
else
str="小於60"
end if
C#
int a= 60;
string str= (a> 59) ? "大於60" : "小於60";
=
string str =""
if (a >59 )
{str="大於60"}
else
{str="小於60"}
全站熱搜
留言列表