1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
#until loop
i=1
until ((i>9))
do
let j=1
until ((j>i))
do
let "temp=i*j"
echo -n "$j*$i=$temp "
let j++
done
let i++
echo ""
done

原理挺简单的,写着玩玩还能吓吓同学对吧╮( ̄▽ ̄)╭