下列程序: Private Sub Form_Click () Dim load As Integer Load = InputBox(″请输入一个整数″) fee = Wei(load)-load Print fee,load End Sub Function Wei(load) If load < 20 Then Money = load/2 Else Money = 10 + load End if Wei = Money End Function 运行时从键盘为变量load提供的数据为20,输出结果是( )。
举一反三
- 运行以下程序时,由键盘为变量load输入的数据为20,输出结果为______。 Private Function Wei(load As Integer),Money As Single If load<20 Then Money=load/2 Else Money=20+load End if Wei=Money End Function Private Sub Form _Click() Dim load As Integer,fee As Single load=InputBox(“请输入一个数:”) fee=Wei(loaD) Print fee End Sub A: 10 B: 20 C: 30 D: 40
- 阅读下面程序: Private Function a(load As Integer) As Single If load <20 then money = load/2 else money =20 + load end if a = money End Function Private Sub Form_Click( ) Dim load As Integer, fee As Single Load = InputBox("请输入一个数:") fee= a(loaD) Print fee End Sub输入20,运行后的输出结果是 【6】 。
- 阅读下面程序。 Private Function a(load As Integer) As Single If load < 20 then money=load / 2 else money=20+load end if a=money End Function Private Sub Form Click() Dim load As Integer,fee As Single Load=InputBox("请输入一个数:") Fee=a(load) Print fee End Sub 输入20,运行后的输出结果是 【13】 。
- For a balanced three-phase △ -connected load, the average power absorbed by the load is P . Change the △ -connected load to Y-connected load, the power will :
- load()语法结构为:$(selector).load(url,data,callback),下列关于load()参数说法不正确的是