Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -0,0 +1,3 @@
|
|||
function Get-GCD ($x, $y) {
|
||||
if ($y -eq 0) { $x } else { Get-GCD $y ($x%$y) }
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
Function Get-GCD( $x, $y ) {
|
||||
while ($y -ne 0) {
|
||||
$x, $y = $y, ($x % $y)
|
||||
}
|
||||
[Math]::abs($x)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue