From 879593784755f24f4a5222d7cd9a77ce5bc2c11d Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Mon, 18 Jan 2021 20:18:49 -0500 Subject: added quiz 2 --- 13_while3.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to '13_while3.zig') 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}); -- cgit v1.2.3-ZIG