This commit is contained in:
mo8it 2024-07-04 19:46:09 +02:00
parent 0b220f9fff
commit 74831dd88f

View file

@ -6,8 +6,8 @@
// Mary is buying apples. The price of an apple is calculated as follows: // Mary is buying apples. The price of an apple is calculated as follows:
// - An apple costs 2 rustbucks. // - An apple costs 2 rustbucks.
// - If Mary buys more than 40 apples, each apple only costs 1 rustbuck! // - If Mary buys more than 40 apples, each apple only costs 1 rustbuck!
// Write a function that calculates the price of an order of apples given the // TODO: Write a function that calculates the price of an order of apples given
// quantity bought. // the quantity bought.
// Put your function here! // Put your function here!
// fn calculate_price_of_apples(???) -> ??? { // fn calculate_price_of_apples(???) -> ??? {