shell脚本之9*9乘法表

  1 #!/bin/bash                                                                 
  2 
  3 echo "9*9 cheng_fa_biao: "
  4 
  5 for i in `seq 9`
  6 do
  7     for j in `seq 9`
  8     do
  9         [ $j -le $i ] && echo -n "$i*$j=$((i*j))  "
 10     done
 11     echo     
 12 done
        

你可能感兴趣的:(shell,脚本)