- Programming with Factorials
- 02 Aug 2014 12:00:38 am
- Last edited by bookworm5 on 02 Aug 2014 08:57:15 am; edited 1 time in total
How do I program this?
example:
n = 30
265-(n-1) = 265-(29) = 236
*How do I program the product from 265 down to 265-(n-1)?
265*264*263*262*261*260*.....*240*239*238*237*236 =
It is a factorial calculation but I'm not doing the entire 265!.
Thank-you.
example:
n = 30
265-(n-1) = 265-(29) = 236
*How do I program the product from 265 down to 265-(n-1)?
265*264*263*262*261*260*.....*240*239*238*237*236 =
It is a factorial calculation but I'm not doing the entire 265!.
Thank-you.