(25)在窗体上有一个命令按钮Commandl,编写下列程序:
Private Sub Command1_Click()
Print ppl(3,7)
End Sub
Public Funcion ppl(x As Single,n As Integer)As Single
If n=0 Then
ppl=1
Else
If n Mod 2=1 Then
ppl=x*x+n
Else
ppl=x*x-n
End If
End If
End Funcion
程序运行后,单击该命令按钮,屏幕上显示的是
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服