Skip to content

Instantly share code, notes, and snippets.

@Wolfos
Created January 24, 2020 10:13
Show Gist options
  • Save Wolfos/945df2a178fc595b1c496f3d9db725ca to your computer and use it in GitHub Desktop.
Save Wolfos/945df2a178fc595b1c496f3d9db725ca to your computer and use it in GitHub Desktop.
function doo
{
param([int]$amount=8)
for($j=0; $j -lt $amount; $j++) {
Write-Host "doo " -NoNewLine
}
Write-Output ""
}
function printVerse
{
param([string]$line="")
for($i=0; $i -lt 3; $i++)
{
Write-Output "$line"
doo 8
}
Write-Output "$line"
doo 4
Write-Output ""
}
printVerse "Baby shark"
printVerse "Mama shark"
printVerse "Papa shark"
printVerse "Little fish"
printVerse "Swim away"
printVerse "Swim faster"
printVerse "Safe at last"
Write-Output "Bye bye sharks!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment