LoginSignup
0
0

More than 5 years have passed since last update.

vbsの作法 その26

Posted at

概要

vbsの作法調べてみた。
再帰、やってみた。

サンプルコード

Function kaijyou(n)
    If n = 1 Then
        kaijyou = 1
    Else
        kaijyou = n * kaijyou(n - 1)
    End If
End Function

Dim answer
answer = kaijyou(5)
msgbox answer

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0