#!/bin/bash
for i in `seq 1 9`
do
for j in `seq 1 $i`
do
k=$(($i*$j))
echo -n "$i x $j = $k "
done
echo
done
时间: 2024-10-06 01:09:43
#!/bin/bash
for i in `seq 1 9`
do
for j in `seq 1 $i`
do
k=$(($i*$j))
echo -n "$i x $j = $k "
done
echo
done