diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-01-18 20:18:49 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-01-18 20:18:49 -0500 |
commit | 879593784755f24f4a5222d7cd9a77ce5bc2c11d (patch) | |
tree | a5d796182eb08a2c60ca7d15e17075ec50c396cb /13_while3.zig | |
parent | 7e123933b915f886da8a7bba1690588a8a04ac93 (diff) | |
download | ziglings-879593784755f24f4a5222d7cd9a77ce5bc2c11d.tar.gz ziglings-879593784755f24f4a5222d7cd9a77ce5bc2c11d.tar.bz2 ziglings-879593784755f24f4a5222d7cd9a77ce5bc2c11d.tar.xz ziglings-879593784755f24f4a5222d7cd9a77ce5bc2c11d.zip |
added quiz 2
Diffstat (limited to '13_while3.zig')
-rw-r--r-- | 13_while3.zig | 2 |
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}); |