Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Loops-For/Zig/loops-for.zig
Normal file
12
Task/Loops-For/Zig/loops-for.zig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
const std = @import("std");
|
||||
|
||||
pub fn main() !void {
|
||||
const stdout_wr = std.io.getStdOut().writer();
|
||||
var i: u8 = 1;
|
||||
while (i < 5) : (i += 1) {
|
||||
var j: u8 = 1;
|
||||
while (j <= i) : (j += 1)
|
||||
try stdout_wr.writeAll("*");
|
||||
try stdout_wr.writeAll("\n");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue