> 其他 >
VB试题:编写函数fun,函数的功能是:求I 到a之间的偶数之积
人气:178 ℃ 时间:2020-01-25 05:42:04
解答
Private Sub fun()
if i mod 2 = 0 then
for x=i to a step 2
s=s*x
next x
else
for x=(i+1) to a step 2 then
s=s*x
next x
end if
试试看行不行吧
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版