手机
当前位置:查字典教程网 >脚本专栏 >vbs >math.vbs 自然数n的n次方的的和或积的级数
math.vbs 自然数n的n次方的的和或积的级数
摘要:复制代码代码如下:dimn,mn=inputbox("inputanumber:","recursion")m=factorial(n)if...

复制代码 代码如下:

dim n,m

n=inputbox("input a number:","recursion")

m=factorial ( n )

if n<0 then msgbox "must be input a number bigger 0."

elseif n=0 then msgbox "0"&"!"&"is:"&"0"

elseif n>0 then msgbox n&"is:"&m

rem how to done not input and press sure case.

end if

Function Factorial (N)

If N <= 1 Then Factorial = 1

Else Factorial = Factorial(N - 1)*n^n

End If

End Function

【math.vbs 自然数n的n次方的的和或积的级数】相关文章:

使用 Iisftp.vbs 停止FTP站点的方法

vbs病毒的简单例子源代码解析

使用 Iisweb.vbs 暂停网站的方法

vbscript禁用 启用fso的方法

使用 Iisftp.vbs 启动FTP站点的方法

vbs实现的定时提醒你休息的脚本

vbs实现的汉字转拼音的函数

使用 iisweb.vbs 列出网站的方法

vbs 脚本错误:操作中文件名或类名未找到的解决方法

使用 Iisftp.vbs 创建FTP站点的方法

精品推荐
分类导航