RosettaCodeData/Task/Loops-For/Rust/loops-for.rs

10 lines
121 B
Rust

fn main() {
for i in 0..5 {
for _ in 0..=i {
print!("*");
}
println!();
}
}