diff options
| author | liv <mokou@fastmail.com> | 2022-09-06 12:09:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-06 12:09:43 +0200 |
| commit | 96552e07c20ef9ad6b2d64d6f853cb8ff1da1b01 (patch) | |
| tree | cad141da69d2a9e69a280e248ee8ac242e342a0d /exercises | |
| parent | 3309a01b5e7f18da6409435151e8ebe0c0a697dc (diff) | |
fix(quiz1): correct explanation once again
Diffstat (limited to 'exercises')
| -rw-r--r-- | exercises/quiz1.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/exercises/quiz1.rs b/exercises/quiz1.rs index d1e76e5..3c2f878 100644 --- a/exercises/quiz1.rs +++ b/exercises/quiz1.rs @@ -4,9 +4,11 @@ // - Functions // - If -// Mary is buying apples. One apple usually costs 2 Rustbucks, but if you buy -// 40 or more at once, each apple only costs 1! Write a function that calculates -// the price of an order of apples given the quantity bought. No hints this time! +// Mary is buying apples. The price of an apple is calculated as follows: +// - An apple costs 2 rustbucks. +// - 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 quantity bought. No hints this time! // I AM NOT DONE |
