339,048 views
6 votes
6 votes
Write a Visual Basic Program to display factorial series upto nth term 1! 2! 3! 4! ...!


User Michael Twomey
by
2.5k points

1 Answer

25 votes
25 votes

Answer:

n = n(n-1)!

Step-by-step explanation:

expanding the factorial we get;

1!=1.

2!=2x1.

3!=3x2x1.

4!=4x3x2x1.

5!=5x4x3x2x1.

we can rewrite the above factorials as:

1!=1

2!=2!

3!=2!x3

4!=4x3!

5!=5x4!

the pattern applies such that if we have n th number we get it's factorial as;

n = n(n-1)!

User Skqr
by
3.4k points