Loops/Continue: Difference between revisions

Content added Content deleted
No edit summary
Line 55: Line 55:
}
}
}</lang>
}</lang>

=={{header|BASIC}}==
{{works with|PureBasic}}

<lang fortran>
OpenConsole()

For i.i = 1 To 10
Print(Str(i))
If i % 5 = 0
PrintN("")
Continue
EndIf
Print(",")
Next

Repeat: Until Inkey() <> ""
</lang>


=={{header|C}}==
=={{header|C}}==
Line 484: Line 466:
Write-Host -NoNewline ", "
Write-Host -NoNewline ", "
}</lang>
}</lang>

=={{header|PureBasic}}==
<lang fortran>
OpenConsole()

For i.i = 1 To 10
Print(Str(i))
If i % 5 = 0
PrintN("")
Continue
EndIf
Print(",")
Next

Repeat: Until Inkey() <> ""
</lang>


=={{header|Python}}==
=={{header|Python}}==