solutions: 5

This commit is contained in:
Muhammad Nauman Raza 2024-11-20 09:00:06 +00:00
parent cd8e40d2ca
commit 4b20b19146
Signed by: devraza
GPG key ID: 91EAD6081011574B

15
smallest_multiple.rs Normal file
View file

@ -0,0 +1,15 @@
fn main() {
let mut numerator: f64 = 1.;
'outer: loop {
for i in 1..=20 {
if numerator % (i as f64) != 0. {
numerator += 1.;
continue 'outer;
}
}
break;
}
println!("{}", numerator);
}