read + 计算

#!/bin/sbin

read -p "please input first number:" a
read -p "please input second number:" b
echo "a+b=$((a+b))"
echo "a-b=$((a-b))"                      

 

posted @ 2017-03-14 13:42  Vincen_shen  阅读(133)  评论(0编辑  收藏  举报