设有下面的语句: Print IIf(x > 0, 1, IIf(x < 0, -1, 0)) 与此语句输出结果不同的程序段是
A.
If x > 0 Then x = 1 ElseIf x < 0 Then x=-1 End If Print x
B.
If x > 0 Then Print 1 ElseIf x < 0 Then Print -1 Else Print 0 End If
C.
Select Case x Case Is > 0 Print 1 Case Is < 0 Print -1 Case Else Print 0 End Select
D.
If x <> 0 Then If x > 0 Then Print 1 ElseIf x < 0 Then Print -1 Else Print 0