Question : Print in rust
Answered by : zac
fn main() { println!("Hello, world!");
}
Source : https://learning-rust.github.io/docs/a3.hello_world.html | Last Update : Fri, 17 Sep 21
Question : rust printing string on stdout
Answered by : jimmy-hypi
fn main() { println!(); // prints just a newline println!("hello there!"); // x can be any var that implements the std::fmt::Display trait let x = true; println!("x is {}", x);
}
Source : | Last Update : Fri, 28 Feb 20