rust-by-practice/solutions/formatted-output/println.md

262 B

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