3fc010301d
Quick CI / quick-test (push) Failing after 1m12s
Multi-Platform CI / test-platforms (ubuntu-22.04) (push) Successful in 7m13s
Multi-Platform CI / test-platforms (windows-latest) (push) Successful in 7m8s
Multi-Platform CI / package (ubuntu-22.04) (push) Failing after 7m12s
Multi-Platform CI / package (windows-latest) (push) Failing after 7m13s
8 lines
261 B
Rust
8 lines
261 B
Rust
fn main() {
|
|
let weight = 70.0_f32;
|
|
let height = 1.75_f32;
|
|
let bmi = medicallib_rust::calculate_bmi(weight, height).expect("valid inputs");
|
|
let class = medicallib_rust::classify_bmi(bmi);
|
|
println!("BMI: {:.2} kg/m^2 — {:?}", bmi, class);
|
|
}
|