Created
January 24, 2020 10:13
-
-
Save Wolfos/945df2a178fc595b1c496f3d9db725ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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