mirror of
https://github.com/notohh/rustlings.git
synced 2025-07-08 00:59:16 -04:00
Merge branch 'master' into refactor-hints
This commit is contained in:
commit
ec2d4bd3ee
61 changed files with 315 additions and 12 deletions
exercises/functions
|
@ -4,6 +4,8 @@
|
|||
// This store is having a sale where if the price is an even number, you get
|
||||
// 10 (money unit) off, but if it's an odd number, it's 3 (money unit) less.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
fn main() {
|
||||
let original_price = 51;
|
||||
println!("Your sale price is {}", sale_price(original_price));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue