AI Features

Solution Review 2: Display Output Using Placeholders

This lesson gives a detailed solution review of the challenge in the previous lesson.

We'll cover the following...

Solution:

Rust 1.40.0
fn test() {
println!("{}", 1);
println!("{}{}", 2, 2);
println!("{}{}{}", 3, 3, 3);
println!("{}{}{}{}", 4, 4, 4, 4);
println!("{}{}{}{}{}", 5, 5, 5, 5, 5);
}

Explanation

...
Ask