Jump to content

Loops/Continue: Difference between revisions

PowerShell
(Add new section for Lisaac)
(PowerShell)
Line 392:
endfor;
</pre>
 
=={{header|PowerShell}}==
{{trans|C}}
<lang powershell>for ($i = 1; $i -le 10; $i++) {
Write-Host -NoNewline $i
if ($i % 5 -eq 0) {
Write-Host
continue
}
Write-Host -NoNewline ", "
}</lang>
 
=={{header|Python}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.