011_while.patch 356 B

1234567891011
  1. --- exercises/011_while.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/011_while.zig 2023-10-05 20:04:06.892763823 +0200
  3. @@ -21,7 +21,7 @@
  4. var n: u32 = 2;
  5. // Please use a condition that is true UNTIL "n" reaches 1024:
  6. - while (???) {
  7. + while (n < 1024) {
  8. // Print the current number
  9. std.debug.print("{} ", .{n});