This commit is contained in:
2024-04-07 19:53:54 -04:00
parent 459c52137a
commit 64a7939eb7
43 changed files with 141 additions and 160 deletions

View File

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