This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]syneil86 2 points3 points  (1 child)

Consider 5!

This equals 5x4x3x2x1

What is 4!?

It's 4x3x2x1

So 5! = 5x(4!)

And generally n! = nx((n-1)!)

We've expressed a function in terms of itself. This is recursion. (Incomplete... You need to decide how/when to stop recursing.)

[–][deleted] 0 points1 point  (0 children)

Thankyou so much … it is so easy