#!/bin/bash
for((i=1;i<=9;i++))
do
for((j=1;j<=i;j++))
do
let a=i*j
echo -n "$i*$j=$a "
done
echo ""
done
时间: 2024-10-07 10:54:57
#!/bin/bash
for((i=1;i<=9;i++))
do
for((j=1;j<=i;j++))
do
let a=i*j
echo -n "$i*$j=$a "
done
echo ""
done