functions

This commit is contained in:
2026-01-08 07:36:21 +00:00
parent 36cbf9d865
commit 505ab3b606
5 changed files with 6 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ fn is_even(num: i64) -> bool {
}
// TODO: Fix the function signature.
fn sale_price(price: i64) -> {
fn sale_price(price: i64) -> i64 {
if is_even(price) {
price - 10
} else {