DAWNING 乡曙光 科技计算来 ·#!/bin/bash#if1.sh echo -n "Enter a number 1<x 10: read num if["$num"-1t10]; then if "Snum"-gt 1 ]then echo "Snum*Snum=$(($num*$num))" else echo "Wrong insertion ! fi else echo "Wrong insertion ! fi• #!/bin/bash # if1.sh echo -n “Enter a number 1 < x < 10: " read num if [ “$num” -lt 10 ]; then if [ “$num” -gt 1 ]; then echo “$num*$num=$(($num*$num))” else echo “Wrong insertion !” fi else echo “Wrong insertion !” fi