我写了一只计算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 "