You are viewing a single comment's thread. Return to all comments →
fn staircase(n: i32) { for number in 1..=n { let line = "#".repeat(number as usize); println!("{:>width$}", line, width = n as usize ); }; }
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
Rust