1 #!/bin/bash
2 #2018 02 12
3 #lee 2269665758@qq.com
4 #9*9乘法表
5 for i in `seq 9`
6 do
7 for j in `seq 9`
8 do
9 [ $j -le $i ] && echo -n "$j x $i = `echo $(($j*$i))` "
10 done
11 echo ""
12 done
测试结果: