aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/13_while3.zig
diff options
context:
space:
mode:
Diffstat (limited to '13_while3.zig')
-rw-r--r--13_while3.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/13_while3.zig b/13_while3.zig
index adb74ef..55fcc0a 100644
--- a/13_while3.zig
+++ b/13_while3.zig
@@ -21,6 +21,8 @@ pub fn main() void {
// I want to print every number between 1 and 20 that is NOT
// divisible by 3 or 5.
while (n <= 20) : (n+=1) {
+ // The '%' symbol is the "modulo" operator and it
+ // returns the remainder after division.
if(n % 3 == 0) ???;
if(n % 5 == 0) ???;
std.debug.print("{} ", .{n});