1 脚本如下
[root@ipvs ~]# vim 99.sh #!/bin/bash # 9*9 table # 2015.5.26 by luzhi for i in {1..9} do for j in {1..9} do if [ $j -le $i ] then c=$(( $i*$j )) echo -e -n "$j*$i=$c\t" fi done echo " " done
2 运行效果
本文出自 “天道酬勤” 博客,请务必保留此出处http://luzhi1024.blog.51cto.com/8845546/1655462
原文地址:http://luzhi1024.blog.51cto.com/8845546/1655462