mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
439 B
20 lines
439 B
1 year ago
|
fn main() {
|
||
|
let a = inv_pyramid(String::from("#"), 1);
|
||
|
let b = inv_pyramid(String::from("a"), 2);
|
||
|
let c = inv_pyramid(String::from(">"), 5);
|
||
|
let d = inv_pyramid(String::from("&"), 8);
|
||
|
|
||
|
for v in a.iter() {
|
||
|
println!("{:?}", v);
|
||
|
}
|
||
|
for v in b.iter() {
|
||
|
println!("{:?}", v);
|
||
|
}
|
||
|
for v in c.iter() {
|
||
|
println!("{:?}", v);
|
||
|
}
|
||
|
for v in d.iter() {
|
||
|
println!("{:?}", v);
|
||
|
}
|
||
|
}
|