mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Improve the .Example section
This commit is contained in:
@ -2,9 +2,10 @@
|
||||
.SYNOPSIS
|
||||
Lists the Fibonacci numbers
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists the Fibonacci numbers.
|
||||
This PowerShell script lists the first 100 Fibonacci numbers.
|
||||
.EXAMPLE
|
||||
PS> ./list-fibonacci
|
||||
PS> ./list-fibonacci.ps1
|
||||
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -18,6 +19,6 @@ function fibonacci($n) {
|
||||
|
||||
|
||||
foreach ($i in 0..100) {
|
||||
Write-Host "$(fibonacci $i), " -noNewline
|
||||
Write-Host "$(fibonacci $i), " -noNewline
|
||||
}
|
||||
exit 0 # success
|
||||
|
Reference in New Issue
Block a user