013_while3.patch 467 B

12345678910111213
  1. --- exercises/013_while3.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/013_while3.zig 2023-10-05 20:04:06.899430616 +0200
  3. @@ -24,8 +24,8 @@
  4. while (n <= 20) : (n += 1) {
  5. // The '%' symbol is the "modulo" operator and it
  6. // returns the remainder after division.
  7. - if (n % 3 == 0) ???;
  8. - if (n % 5 == 0) ???;
  9. + if (n % 3 == 0) continue;
  10. + if (n % 5 == 0) continue;
  11. std.debug.print("{} ", .{n});
  12. }