hello world rust code example
Example 1: hello world rust
// This is the main function
fn main() {
// Statements here are executed when the compiled binary is called
// Print text to the console
println!("Hello World!");
}
Example 2: hello world in rust
// This code is editable, feel free to hack it!
// This is the main function
fn main() {
// Statements here are executed when the compiled binary is called
// Print text to the console
println!("Hello World!");
}