rust multiplication table for a number

Rust Multiplication Table

Here's a code snippet in Rust that generates a multiplication table for a given number:

fn main() {
    let number = 5; // replace with your desired number

    for i in 1..=10 {
        let result = number * i;
        println!("{} x {} = {}", number, i, result);
    }
}

This code will generate the multiplication table for the number 5. You can replace the value of number with any other number to generate the multiplication table for that number.

I hope this code snippet helps! Let me know if you have any further questions.