Skip to content

Commit

Permalink
quiz1
Browse files Browse the repository at this point in the history
  • Loading branch information
rganesan committed May 13, 2024
1 parent d155618 commit 297be35
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions exercises/quiz1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
//
// No hints this time ;)

// I AM NOT DONE

// Put your function here!
// fn calculate_price_of_apples {
fn calculate_price_of_apples(n: u32) -> u32 {
if n > 40 {
n
} else {
n * 2
}
}

// Don't modify this function!
#[test]
Expand Down

0 comments on commit 297be35

Please sign in to comment.