This is a Rust code snippet/Kotlin program to print “Hello World” output. In this code snippet, we will create a simple program that displays “Hello World” once we executed the program.
“Hello World” is a simple computer program that outputs a simple line of a message “Hello World”, because it’s simplicity, it is often used to illustrate the basic syntax of a programming language. It is also often the first program written by people learning to Rust code.
Here’s an example code snippet / program code to display the Hello World message in Rust programming language:
fn main() {
println!("Hello World!");
}
Output
The Rust Hello World code above will produce the following result:
Hello World!
You can also read others Hello World syntax codes in various programming languages by reading the “Hello World!” in 20+ Programming Languages.