shell命令行

1、求两个数的和

echo "please input numbers:"
read num1
read num2
sum=$[$num1 + $num2]
echo $sum

2、计算1-100的和

posted on 2019-09-19 17:42  ChanXM  阅读(125)  评论(0)    收藏  举报

导航