6、shell脚本,打印九九乘法表

 

参考脚本如下

#!/bin/bash

1
i=1 2 until ((i>9)) 3 do 4 let j=1 5 until ((j>i)) 6 do 7 let "temp=i*j" 8 echo -n "$i*$j=$temp " 9 let j++ 10 done 11 let i++ 12 echo "" 13 done