aboutsummaryrefslogtreecommitdiff
path: root/exercises/10_if2.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/10_if2.zig')
-rw-r--r--exercises/10_if2.zig16
1 files changed, 0 insertions, 16 deletions
diff --git a/exercises/10_if2.zig b/exercises/10_if2.zig
deleted file mode 100644
index d0c8cac..0000000
--- a/exercises/10_if2.zig
+++ /dev/null
@@ -1,16 +0,0 @@
-//
-// If statements are also valid expressions:
-//
-// var foo: u8 = if (a) 2 else 3;
-//
-const std = @import("std");
-
-pub fn main() void {
- var discount = true;
-
- // Please use an if...else expression to set "price".
- // If discount is true, the price should be $17, otherwise $20:
- var price: u8 = if ???;
-
- std.debug.print("With the discount, the price is ${}.\n", .{price});
-}