我寫了一隻計算bmi並傳值到另一支程式印出結果的ss.
read -p "How about your Height(cm)?" height
read -p "How about your Weight(kg)?" weight
echo "your height is $height cm"
echo "your weight is $weight kg"
#because i need chage height's cm to m, and 1m = 100cm
h=`expr $height / 100`
BMI=`expr $weight / ($h \* $h)`
echo "