原版:http://297020555.blog.51cto.com/1396304/493841
改版的内容如下:
#!/bin/bash
for a in `seq 1 9`
do
echo ""
for b in `seq 1 9`
do
if [ $a -ge $b ]
then
echo -n "$a x $b = $(expr $a \* $b)" \
fi
done
done
echo ""
效果图:
本文出自 “blog.itsir.org” 博客,请务必保留此出处http://297020555.blog.51cto.com/1396304/494363