Consistent instructions and examples

I started off with "hints" that required the poor student to piece
together the information from incomplete bits. A complete example is
like a picture that is worth 1000 words and far clearer.
This commit is contained in:
Dave Gauer 2021-02-07 11:06:51 -05:00
parent 507355ec3b
commit adf5ddb27d
16 changed files with 185 additions and 89 deletions

View file

@ -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});
}