This commit is contained in:
darko.deuric 2022-08-05 12:29:54 +02:00
parent b6d2ea70cd
commit 8a6aecac9c

View File

@ -11,7 +11,13 @@
// I AM NOT DONE // I AM NOT DONE
// Put your function here! // Put your function here!
// fn calculate_price_of_apples { fn calculate_price_of_apples(apples: u32) -> u32 {
if apples > 40 {
apples
} else {
apples * 2
}
}
// Don't modify this function! // Don't modify this function!
#[test] #[test]