shell实现九九乘法表

1
2
3
4
5
6
7
8
for (( i=1;i<=9;i++ ))
do
for (( j=1;j<=i;j++ ))
do
echo -n "$j*$i=$[$j*$i] "
done
echo -e '\n'
done
0%