Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do Factorials in VFP with Recursion
Message
From
22/02/2000 00:07:04
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00335196
Message ID:
00335240
Views:
15
>You may use recursion, if you're calculating a determinant. I created a recursion-based program in VB...
>
>BTW, it's a well-known fact, that each recursive program could be done in non-recursive way too.

Maybe it's worth to add that the recursive solution is always (or almost always) slower than the non-recursive solution,
while the recursive one is usually more clear and readable... but it's not the case witht the factorials! :)

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform