您的位置首页百科知识 阶乘在VB 中怎么写呀 Simone 发布于 2024-06-19 08:39:25 600 阅读 阶乘在VB 中怎么写呀的有关信息介绍如下:建一个Command1。中间那部分就是运算程序。代码如下。=============Private Sub Command1_Click()Dim a As Integer, i As Integer, s As Doubles = 1a = InputBox("输入数")For i = 2 To as = s * iNextMsgBox a & "的阶乘是:" & sEnd Sub