shell九九乘法表

#!/bin/bash
for x in {1..9}; do
    for y in {1..9}; do
        if [ $x -ge $y ]; then
            echo -ne "$y*$x=$[$y*$x] \t" 
        fi
    done
    echo
done
posted @ 2016-12-06 19:04  骚猪  阅读(175)  评论(0编辑  收藏  举报