I'm good, thanks for your help!
Type: Posts; User: my21
I'm good, thanks for your help!
I do not have the right iterative factorial algorithm
something straightforward, i'm pretty sure the recursive way needs the method to be an integer but that requires return statements.
how to put it to code
This is only for the numbers 1-30, but I don't know how to calculate its factorial and match it up with the given integer.
public static void factorial() {
int sum, number = 10;
...
How can I make a factorial table for the numbers 0-10...I want it printed so 0 1, 1 1, 2, 2, 3 6 etc, but I do not know how.