Back to Rust By Practice

Println

solutions/formatted-output/println.md

latest262 B
Original Source
rust
fn main() {
    let s1 = "hello";
    /* Fill in the blank */
    let s = format!("{}, world!", s1);
    assert_eq!(s, "hello, world!");
}
rust
fn main() {
    print!("hello world, ");
    println!("I am");
    println!("Sunface!");
}