Can you give a simple example of rust progam with explaination
Here is a simple "Hello, World!" program in Rust:

<rust>
fn main() {
    println!("Hello, World!");
}
</rust>

Explanation:

- fn is a keyword that indicates we're defining a function.

- main is a special function in Rust that serves as the entry point of the program.

- println! is a macro that prints text to the console. The exclamation mark indicates that this is a macro rather than a function.

- "Hello, World!" is a string that we want to print to the console. The double quotes indicate that this is a string literal.

When you run this program, it will print "Hello, World!" to the console. I hope this helps.