以下程序的功能是求“x^3-5”表达式的值,其中X的值由文本框Text0输入,运算的结果由文本框Text3输出。 Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0=x y=x^3-5 Me.Text3=y End Sub 上述程序有错误。错误的语句是______。
A: Dim x As Integer
B: Me.Text0=x
C: Me.Text3=y
D: Dim y As Long
A: Dim x As Integer
B: Me.Text0=x
C: Me.Text3=y
D: Dim y As Long
举一反三
- 以下程序的功能是求“x^3*5”表达式的值,其中x的值由文本框Text0输入,运算的结果由文本框Text1输出。 Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0=x y=x^3*5 Me.Text1=y End Sub 运行上述程序时,会有错误。错误的语句是 A: Dim x As Integer B: Me.Text0=x C: Me.Text1=y D: Dim y As Long
- 以下程序的功能是求"x ^ 3 * 5"表达式的值,其中 x 的值由文本框 Text0 输入,运算的结果由文本框 Text1 输出。Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0 = x y = x ^ 3 * 5Me.Text1 = yEnd Sub运行上述程序时,会有错误。错误的语句是 A: Dim x As Integer B: Me.Text0 = x C: Me.Text1 = y D: Dim y As Long
- 以下程序的功能是求"x ^ 2 + 5"表达式的值,其中x的值由文本框Text0输入,运算的结果由文本框Text1输出。Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0 = x y = x * x + 5Me.Text1 = yEnd Sub运行上述程序时,出现了错误,错误的语句是 A: Dim x As Integer B: Me.Text0 = x C: Me.Text1 = y D: Dim y As Long
- 由文本框 Text1 输出。Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0 = x y = x ^ 3 * 5Me.Text1 = yEnd Sub运行上述程序时,会有错误。错误的语句是 A: Dim x As Integer B: Me.Text0 = x C: Me.Text1 = y D: Dim y As Long
- 编写如下程序: Private Sub Command1_Click() Dim x As Integer, y As Integer x = 1: y = 1 Do y = x * y If y > 10 Then Print x, y Exit Do Else x = x + 3 End If Loop While x <= 10 End Sub 运行程序,输出结果为______