CJCoding With Joseph

Print a Factorial

The variable n holds 5. Compute n factorial (the product 1 * 2 * 3 * 4 * 5) and print it so the output is exactly:

120

Expected Output:

120
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (clog, fn, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.