Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Factorial of a number(yes I searched)

807607Nov 3 2006 — edited Nov 6 2006
Hey guys, I need to do a factorial(im guessing that word os the same as factor? just a plural or something like that), anyways, the book says the factorial of an integer (lets say n) n is n *(n-1) * (n-2)* . . . * 3 * 2 * 1, the example is the factorial of 4 is 4 * 3 * 2 * 1, or 24, im not sure how to code this, ive got the rest of the code setup but I shipped this line as I wasnt sure and went back but wasnt sure what to do, I used a program from the book as my example so i know that works, now I just need to change it to make it work for me, not quite sure what to do with this one, thanks for any help----Dinty
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2006
Added on Nov 3 2006
18 comments
504 views