This commit is contained in:
Jairinho 2024-05-06 18:16:04 -04:00
parent 9d935ff81e
commit b80931c12d
Signed by: tangzero
GPG Key ID: 00C38159245F9F6D

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:
const price: u8 = if ???;
const price: u8 = if (discount) 17 else 20;
std.debug.print("With the discount, the price is ${}.\n", .{price});
}