math.vbs 自然数n的n次方的的和或积的级数
导读:收集整理的这篇文章主要介绍了math.vbs 自然数n的n次方的的和或积的级数,觉得挺不错的,现在分享给大家,也给大家做个参考。 复制代码 代码如下:dim n,m n=inputbox...
收集整理的这篇文章主要介绍了math.vbs 自然数n的n次方的的和或积的级数,觉得挺不错的,现在分享给大家,也给大家做个参考。 复制代码 代码如下:dim n,m
n=inputbox("input a number:","recursion")
m=factorial ( n )
if n0 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
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: math.vbs 自然数n的n次方的的和或积的级数
本文地址: https://pptw.com/jishu/609809.html
