单项选择题

当输入F值为3时,以下 VB程序运行的结果是()。 Private Sub Command1 Click () Dim A as Integer, B as Integer, C as Single Dim D as string F=InputBox(“请输入F的值:”) A=3 B=5 Select case F Case 1 C=A+B, D=“+” Case 2 C=A-B, D=“-” Case 3 C=A*B, D=“*” Case 4 C=A/B, D=“/” Case 5 Else=End End Select Print C End Sub

A.15
B.5
C.1
D.-2