Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 765 Bytes

File metadata and controls

43 lines (28 loc) · 765 Bytes

Function

Example

Execute the following command to run ./solutions/examples/func.rs

cargo run --example func

Exercises

Exercises are in ./exercises/src/lib.rs

Exercise 1

pub fn mul() {
    todo!();
}

Fix the function mul inside ./exercises/src/lib.rs

This the function should take 2 inputs of the type u32, multiply them and then return the product.

Exercise 2

pub fn div() {
    todo!();
}

Fix the function div inside ./exercises/src/lib.rs

This the function should take 2 inputs of the type u32, divide them and then return the quotient.

Test

cargo test