递增
#!/bin/bash
for i in `seq 9`
do
for j in `seq $i`
do
echo -n "$j*$i=$[i*j] "
done
echo
done
递减
#!/bin/bash
for (( i=9;i>=1;i--))
do
for j in `seq $i`
do
echo -n "$j*$i=$[i*j] "
done
echo
done