【单选题】有下面程序代码: Private Sub Command1_Click() Dim sign As Integer sign = 1 a = 1 : b = 2 For k = 1 To 5 c = a + sign * b a = b : b = c Print c; sign = -sign Next k End Sub 程序运行后,单击命令按钮Command1,输出结果是
【单选题】有下面程序代码: Private Sub Command1_Click() Dim x As Integer, s As Integer x = 1 For k = 1 To 3 x = x + 1 : proc x : s = s + x Next k Print s End Sub Private Sub proc(ByVal a As Integer) Static x As Integer...
【简答题】有下面程序代码: Private Sub Command1_Click() Dim x As Integer,s As Integer x=1 For k=1 To 3 x=x+2 proc x s=s+x Next k Print s End Sub Private Sub proc(ByVal a As Integer) Static x As Integer x=x+5 a=a+x End ...