ASP/VBScript Illustration -- Calculate Factorials
Using a For Loop:
1 Factorial = 1
2 Factorial = 2
3 Factorial = 6
4 Factorial = 24
5 Factorial = 120
Using a Do While:
1 Factorial = 1
2 Factorial = 2
3 Factorial = 6
4 Factorial = 24
5 Factorial = 120