请求讲解下
vb吧
全部回复
仅看楼主
level 3
2024年05月03日 08点05分 1
level 8
不就是递归么
依次调用了test(3),.test(2),test(1)
返回了test(1),.test(2),test(3)
2024年05月03日 09点05分 2
@新春日部防卫队 见下楼,递归写n!
2024年05月03日 11点05分
level 8
用Function写一个N!
Private Function jc(N As integer) as Long
if n= 0 or n=1 then
JC=1 :exit function
end if
jc=n*jc(n-1)
End Function
2024年05月03日 11点05分 4
1