Merge pull request #24 from akshitgautam42/Qz-1

Quiz 1
This commit is contained in:
Akshit Gautam 2023-11-12 14:45:56 +05:30 committed by GitHub
commit ddf7f3bbda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,10 +13,15 @@
//
// No hints this time ;)
// I AM NOT DONE
// Put your function here!
// fn calculate_price_of_apples {
fn calculate_price_of_apples(n:i32) -> i32 {
if n==35 || n==40 {
return n*2
}
return n
}
// Don't modify this function!
#[test]