Update the comment based header

This commit is contained in:
Markus Fleschutz
2022-09-06 21:42:04 +02:00
parent 931a692848
commit c1317242a8
335 changed files with 460 additions and 465 deletions

View File

@ -1,3 +1,16 @@
<#
.SYNOPSIS
Lists the Fibonacci numbers
.DESCRIPTION
This PowerShell script lists the Fibonacci numbers.
.EXAMPLE
PS> ./list-fibonacci
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
function fibonacci($n) {
if ($n -lt 2) { return 1 }
return (fibonacci($n - 1)) + (fibonacci($n - 2))
@ -7,4 +20,4 @@ function fibonacci($n) {
foreach ($i in 0..100) {
Write-Host "$(fibonacci $i), " -noNewline
}
exit 0 # success
exit 0 # success