在p5js中]分别用for循环和递归;求n!+(n-1)!+(n-2)!+...+2!+1 n=5循环:Function Sigma(ByVal N As Integer) As Integer '循环Dim tmp As IntegerFor i = 1 To Ntmp = tmp + iNext i2023-04-26JavaScript190