2022-03-15 06:05:03 -06:00
|
|
|
1.
|
2022-05-01 00:08:50 -05:00
|
|
|
|
2022-03-15 06:05:03 -06:00
|
|
|
```rust
|
|
|
|
fn main() {
|
|
|
|
let s1 = "hello";
|
|
|
|
/* Fill in the blank */
|
|
|
|
let s = format!("{}, world!", s1);
|
|
|
|
assert_eq!(s, "hello, world!");
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
2.
|
2022-05-01 00:08:50 -05:00
|
|
|
|
2022-03-15 06:05:03 -06:00
|
|
|
```rust
|
|
|
|
fn main() {
|
|
|
|
print!("hello world, ");
|
|
|
|
println!("I am");
|
|
|
|
println!("Sunface!");
|
|
|
|
}
|
|
|
|
```
|