Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,6 +0,0 @@
|
|||
function Get-Factorial ($x) {
|
||||
if ($x -eq 0) {
|
||||
return 1
|
||||
}
|
||||
return $x * (Get-Factorial ($x - 1))
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
function Get-Factorial ($x) {
|
||||
if ($x -eq 0) {
|
||||
return 1
|
||||
} else {
|
||||
$product = 1
|
||||
1..$x | ForEach-Object { $product *= $_ }
|
||||
return $product
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
function Get-Factorial ($x) {
|
||||
if ($x -eq 0) {
|
||||
return 1
|
||||
}
|
||||
return (Invoke-Expression (1..$x -join '*'))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue