id/email
password
forgot password
about | help | done | prefs | create account
JavaBat java practice problems

factorial

Given an integer n, compute the factorial of n (written n!). For example, factorial(4) should return 24, since 1 * 2 * 3 * 4 is 24.

factorial(4) → 24
factorial(5) → 120
factorial(6) → 720

...Save, Compile, Run         

See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops

Forget It! -- delete my code for this problem 200

Copyright Nick Parlante 2006-09 - privacy