Complete Quiz 1

This commit is contained in:
Suzie Kim 2024-01-31 11:15:37 -05:00
parent ef82b93271
commit fca2d54cb8
No known key found for this signature in database
GPG key ID: 83C4CC3808F9AAE9

View file

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