mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 22:38:46 +02:00
Updated the manuals
This commit is contained in:
@ -31,16 +31,16 @@ Script Content
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
function fibonacci($n) {
|
||||
function fibo([int]$n) {
|
||||
if ($n -lt 2) { return 1 }
|
||||
return (fibonacci($n - 1)) + (fibonacci($n - 2))
|
||||
return (fibo($n - 1)) + (fibo($n - 2))
|
||||
}
|
||||
|
||||
|
||||
foreach ($i in 0..100) {
|
||||
Write-Host "$(fibonacci $i), " -noNewline
|
||||
Write-Host "$(fibo $i), " -noNewline
|
||||
}
|
||||
exit 0 # success
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-fibonacci.ps1 as of 08/15/2024 09:50:49)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-fibonacci.ps1 as of 11/08/2024 12:34:50)*
|
||||
|
Reference in New Issue
Block a user