Complete very basic quiz.

This commit is contained in:
neerajadsul 2023-08-19 11:43:05 +01:00
parent 625f4b6e12
commit 2f88671e19

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(quantity: i32) -> i32 {
if quantity > 40 {
quantity
} else {
quantity * 2
}
}
// Don't modify this function! // Don't modify this function!
#[test] #[test]