You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
102 B
8 lines
102 B
15 years ago
|
// recursion
|
||
|
function a(x) {
|
||
|
if (x>1)
|
||
|
return x*a(x-1);
|
||
|
return 1;
|
||
|
}
|
||
|
result = a(5)==1*2*3*4*5;
|