Merge pull request #11 from akshitgautam42/Ex-12

Exercise 12
This commit is contained in:
Akshit Gautam 2023-11-11 20:31:46 +05:30 committed by GitHub
commit 895732e093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,14 +8,14 @@
// Execute `rustlings hint functions4` or use the `hint` watch subcommand for a
// hint.
// I AM NOT DONE
fn main() {
let original_price = 51;
let original_price:i32 = 51;
println!("Your sale price is {}", sale_price(original_price));
}
fn sale_price(price: i32) -> {
fn sale_price(price: i32) -> i32{
if is_even(price) {
price - 10
} else {