Computer Science, asked by dhrubabasak41, 9 days ago

write a program to demonstrate the subroutine concept of small basic​

Answers

Answered by Jha28utkarsh
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