This commit is contained in:
Daniil Moiseev 2022-09-21 21:04:29 +00:00 committed by Daniil
parent 95914416dd
commit 29402f3739

View File

@ -13,10 +13,14 @@
//
// No hints this time ;)
// I AM NOT DONE
// Put your function here!
// fn calculate_price_of_apples {
fn calculate_price_of_apples(amount: i32) -> i32 {
if (amount > 40) {
amount
} else {
amount * 2
}
}
// Don't modify this function!
#[test]