This commit is contained in:
Adam Millerchip 2021-12-25 18:45:38 +09:00
parent 859990d1cc
commit 89d17b05a3
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ pub fn main() void {
// Please use an if...else expression to set "price".
// If discount is true, the price should be $17, otherwise $20:
var price: u8 = if ???;
var price: u8 = if (discount) 17 else 20;
std.debug.print("With the discount, the price is ${}.\n", .{price});
}