#!/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"
09-05
#!/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"