First quiz and its related modules

This commit is contained in:
Nidhal Messaoudi
2023-02-26 17:28:24 +01:00
parent 36e66b545e
commit 52ed5dbcf9
22 changed files with 60 additions and 98 deletions

View File

@@ -1,13 +1,16 @@
// if1.rs
// Execute `rustlings hint if1` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
pub fn bigger(a: i32, b: i32) -> i32 {
// Complete this function to return the bigger number!
// Do not use:
// - another function call
// - additional variables
if a > b {
a
} else {
b
}
}
// Don't mind this for now :)