VB试题:编写函数fun,函数的功能是:求I 到a之间的偶数之积

学习 时间:2026-11-11 02:59:38 阅读:1789
VB试题:编写函数fun,函数的功能是:求I 到a之间的偶数之积

最佳回答

整齐的爆米花

热情的羊

2026-11-11 02:59:38

Private Sub fun()if i mod 2 = 0 then for x=i to a step 2 s=s*x next xelse for x=(i+1) to a step 2 then s=s*x next xend if 试试看行不行吧

最新回答共有2条回答

  • 苹果电灯胆
    回复
    2026-11-11 02:59:38

    Private Sub fun()if i mod 2 = 0 then for x=i to a step 2 s=s*x next xelse for x=(i+1) to a step 2 then s=s*x next xend if 试试看行不行吧

上一篇 make a noise是什么意思?

下一篇 跨越百年的美丽中的美丽指哪几方面