Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 158 Bytes

quiz1.md

File metadata and controls

11 lines (10 loc) · 158 Bytes

Quiz 1

fn calculate_price_of_apples(quantity: i32) -> i32 {
    if quantity > 40 {
        quantity
    } else {
        quantity * 2
    }
}