Rust打印九九乘法表
用rust打印一个99乘法表
fn main() {
for i in 1..10 {
for j in 1..i + 1 {
print!("{} x {} = {}\t", j, i, j * i);
}
println!();
}
}
运行
用rust打印一个99乘法表
fn main() {
for i in 1..10 {
for j in 1..i + 1 {
print!("{} x {} = {}\t", j, i, j * i);
}
println!();
}
}
运行