write a program to demonstrate the subroutine concept of small basic
Answers
Answered by
0
Answer:
n = 5
Factorial()
TextWindow.WriteLine(n + "!=" + f)
Sub Factorial
' param n
' return f = n!
f = 1
For i = 2 To n
f = f * i
EndFor
EndSub
Similar questions