quiz1 done

This commit is contained in:
Artur Zinurov 2023-12-26 20:58:35 -06:00
parent bae67e341a
commit 18509cba3f

View File

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