aboutsummaryrefslogtreecommitdiff
path: root/exercises/09_if.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-03-12 18:59:46 -0500
committerDave Gauer <dave@ratfactor.com>2021-03-12 18:59:46 -0500
commit6ad9774189fbd64b2f2c9519f4513ab34b0c3809 (patch)
treed6c90700131d5b28e898881f13e2a05612e4703f /exercises/09_if.zig
parentbe36352572ddb18218e1830e49316c259dea5e8c (diff)
downloadziglings-6ad9774189fbd64b2f2c9519f4513ab34b0c3809.tar.gz
ziglings-6ad9774189fbd64b2f2c9519f4513ab34b0c3809.tar.bz2
ziglings-6ad9774189fbd64b2f2c9519f4513ab34b0c3809.tar.xz
ziglings-6ad9774189fbd64b2f2c9519f4513ab34b0c3809.zip
"999 is enough for anybody" triple-zero padding (#18)
When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
Diffstat (limited to 'exercises/09_if.zig')
-rw-r--r--exercises/09_if.zig32
1 files changed, 0 insertions, 32 deletions
diff --git a/exercises/09_if.zig b/exercises/09_if.zig
deleted file mode 100644
index 284563d..0000000
--- a/exercises/09_if.zig
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// Now we get into the fun stuff, starting with the 'if' statement!
-//
-// if (true) {
-// ...
-// } else {
-// ...
-// }
-//
-// Zig has the "usual" comparison operators such as:
-//
-// a == b means "a equals b"
-// a < b means "a is less than b"
-// a != b means "a does not equal b"
-//
-// The important thing about Zig's "if" is that it *only* accepts
-// boolean values. It won't coerce numbers or other types of data
-// to true and false.
-//
-const std = @import("std");
-
-pub fn main() void {
- const foo = 1;
-
- // Please fix this condition:
- if (foo) {
- // We want our program to print this message!
- std.debug.print("Foo is 1!\n", .{});
- } else {
- std.debug.print("Foo is not 1!\n", .{});
- }
-}