单选

设有一个命令按钮Command1的事件过程以及一个函数过程,程序如下:

Private Sub Command1_Click()

   Static x as integer

   X=f(x+5)

   Cls

   Print x

End Sub

Private function f(x as integer)as integer

   F=x+x

End function

连续单击命令按钮3次,第3次单击命令按钮后,窗体上显示的计算结果是

  • A)10
  • B)30
  • C)60
  • D)70
参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服