源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

math.vbs 自然数n的n次方的的和或积的级数

  • 时间:2022-08-07 10:32 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:math.vbs 自然数n的n次方的的和或积的级数
[u]复制代码[/u] 代码如下:
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
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部