012_while2.patch 412 B

1234567891011
  1. --- exercises/012_while2.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/012_while2.zig 2023-10-05 20:04:06.896097219 +0200
  3. @@ -25,7 +25,7 @@
  4. // Please set the continue expression so that we get the desired
  5. // results in the print statement below.
  6. - while (n < 1000) : ??? {
  7. + while (n < 1000) : (n *= 2) {
  8. // Print the current number
  9. std.debug.print("{} ", .{n});
  10. }