Table de multiplication de la rouille pour un nombre
// create multiplication table for a number
fn multiplication(n: u64) -> String {
(1..=12).map(|i| format!("{} * {} = {}", i, n, i * n)).collect::<Vec<_>>().join("\n")
}
fn main() {
println!("{}", multiplication(7));
}
Mackerel