aboutsummaryrefslogtreecommitdiff
path: root/12_while2.zig
diff options
context:
space:
mode:
Diffstat (limited to '12_while2.zig')
-rw-r--r--12_while2.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/12_while2.zig b/12_while2.zig
index dba1a26..6f808c8 100644
--- a/12_while2.zig
+++ b/12_while2.zig
@@ -23,11 +23,13 @@ const std = @import("std");
pub fn main() void {
var n: u32 = 2;
+ // Please set the continue expression so that we get the desired
+ // results in the print statement below.
while (n < 1000) : ??? {
// Print the current number
std.debug.print("{} ", .{n});
}
- // Make this print n=1024
+ // As in the last exercise, we want this to result in "n=1024"
std.debug.print("n={}\n", .{n});
}