commit deletes
This commit is contained in:
parent
776bba907c
commit
372c577f83
233 changed files with 0 additions and 6724 deletions
|
|
@ -1,8 +0,0 @@
|
|||
function factorial(n)
|
||||
factorial = 1
|
||||
if n>0 then
|
||||
for p=1 to n
|
||||
factorial *= p
|
||||
next p
|
||||
end if
|
||||
end function
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
function factorial(n::Integer)
|
||||
if n < 0
|
||||
return zero(n)
|
||||
end
|
||||
f = one(n)
|
||||
for i = 2:n
|
||||
f *= i
|
||||
end
|
||||
return f
|
||||
end
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
sub postfix:<!> { [*] 1..$^n }
|
||||
|
||||
say 5!; #prints 120
|
||||
Loading…
Add table
Add a link
Reference in a new issue