PowerShell - Control Flow
What will be the output of this PowerShell code?
$count = 1
do {
Write-Output $count
$count++
} while ($count -le 3)
$count = 1
do {
Write-Output $count
$count++
} while ($count -le 3)
do-while loop runs the body first, printing $count starting at 1, then increments $count.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions