Show ASCII table: Difference between revisions

added Zig
(Fix lang example ($val was set to Spc (instead of SPC) and Del (instead of DEL)))
(added Zig)
Line 5,659:
0F / ? O _ o
</pre>
 
=={{header|Zig}}==
{{trans|Java}}
<syntaxhighlight lang="zig">const std = @import("std");
pub fn main() void {
var i: u8 = 33;
std.debug.print(" 32: Spc", .{});
while (i < 127) : (i += 1) {
if (i < 100) {
std.debug.print(" {d}: {c} ", .{ i, i });
} else {
std.debug.print("{d}: {c} ", .{ i, i });
}
if (@mod(i, 6) == 1) {
std.debug.print("\n", .{});
}
}
std.debug.print("127: Del", .{});
}</syntaxhighlight>
 
=={{header|zkl}}==
18

edits