0
Q:

rust printing string on stdout

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);
}
1

New to Communities?

Join the community