Skip to content

Commit

Permalink
finish if1
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-ing committed Jan 17, 2025
1 parent 11e45db commit 61e9608
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions exercises/if/if1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ pub fn bigger(a: i32, b: i32) -> i32 {
// Do not use:
// - another function call
// - additional variables
if a>b{
a
}
else if a<b{
b
}
else
{
a
}
}

// Don't mind this for now :)
Expand Down

0 comments on commit 61e9608

Please sign in to comment.