单击一次窗体之后,下列程序代码的执行结果为______。 Private Sub Command1_ Click() Dim a As Integer, b As Integer, c As Integer a = 1: b

admin2009-07-23  23

问题 单击一次窗体之后,下列程序代码的执行结果为______。    Private Sub Command1_ Click()       Dim a As Integer, b As Integer,  c As Integer       a = 1: b = 2: c = 4       Print Value(a, b,C)End Sub    Function Num(x As Integer,  y As Integer,  z As Integer)       Num = x * x + y * y + z * z    End Function    Function Value(x As Integer, y As Integer, z As Integer)       Value = Num(x, y, z) + 2 * x    End Function

选项 A、21
B、23
C、19
D、35

答案B

解析
转载请注明原文地址:https://jikaoti.com/ti/Ehq0FFFM
0

最新回复(0)