#!/bin/bash
echo "please input two int num:"
read -p "first int:" first
read -p "second int:" second
total=$(($first+$second)) //重点是其中的total与=之间不能有空格
echo "first = $first,second=$second,total=$total"
Linux实现两值的相加
最新推荐文章于 2023-11-14 20:47:47 发布
727

被折叠的 条评论
为什么被折叠?



