Loops/Continue: Difference between revisions

Content added Content deleted
(add Zig example)
No edit summary
Line 1,042: Line 1,042:


This sort of scheme facilitates a compact way of printing a table with a heading, where the WRITE statement simply pours forth the data and relies on something like FORMAT("heading",/,(complex details for one line)) - thus printing the table line-by-line with only the first line having the heading, a saving on having a write and format statement pair for the heading and a second pair for the table body.
This sort of scheme facilitates a compact way of printing a table with a heading, where the WRITE statement simply pours forth the data and relies on something like FORMAT("heading",/,(complex details for one line)) - thus printing the table line-by-line with only the first line having the heading, a saving on having a write and format statement pair for the heading and a second pair for the table body.

=={{header|FutureBasic}}==
<lang futurebasic>include "NSLog.incl"

long num

for num = 1 to 10
if ( num mod 5 )
NSLog(@"%ld, \b",num)
else
NSLog(@"%ld")
end if
next

HandleEvents</lang>


=={{header|Gambas}}==
=={{header|Gambas}}==