Example challenge

You are given one positive integer n as input. Write a program which returns the value of "n factorial": n! = 1 * 2 * ... * n.

Attention: you cannot use loops or jumps in your program - the corresponding language keywords are blacklisted.


Sample input:

1
2
3
4

Sample output:

1
2
6
24

Sample solutions


function foo(items) { var x = "All this is syntax highlighted"; return x; }