> 其他 >
编写一个求X的n次方的函数
人气:135 ℃ 时间:2020-08-17 19:15:10
解答
Private Function S(ByVal x As Integer,ByVal n As Integer) As Long
S = x ^ n
Print S
End Function
Private Sub Command1_Click()
x = 6
n = 5
Call S(x,n)
End Sub
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版