#!/bin/bash
for i in {1..9}
do
line=""
for j in {1..9}
do
if [ $j -le $i ]
then
let "product=i*j"
line="$line $i*$j=$product"
fi
done
echo $line
done
#!/bin/bash
read -p "请输入学生成绩:" score
case $score in
9[1-9]|100)
echo "等级:A"
;;
8[1-9]|90)
echo "等级:B"
;;
7[1-9]|80)
echo "等级:C"
;;
6[1-9]|70)
echo "等级:D"
;;
*)
echo "玩呢"
;;
esac