#!/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
打印结果:
时间: 2025-01-06 14:39:49
#!/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
打印结果: