mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-03-28 21:34:52 +00:00
21 lines
594 B
Diff
21 lines
594 B
Diff
--- exercises/095_for3.zig 2026-02-27 19:33:59
|
|
+++ answers/095_for3.zig 2026-02-27 19:33:38
|
|
@@ -56,7 +56,7 @@
|
|
|
|
// I want to print every number between 1 and 20 that is NOT
|
|
// divisible by 3 or 5.
|
|
- for (???) |n| {
|
|
+ for (1..21) |n| {
|
|
|
|
// The '%' symbol is the "modulo" operator and it
|
|
// returns the remainder after division.
|
|
@@ -68,7 +68,7 @@
|
|
std.debug.print("\n", .{});
|
|
|
|
// Let's also print every number from 1 through 15
|
|
- for (???) |n| {
|
|
+ for (1..16) |n| {
|
|
std.debug.print("{} ", .{n});
|
|
}
|
|
std.debug.print("\n", .{});
|