加法器
#!/bin/bash
#
#echo -n "something" #-n,为不换行
read -p "Please Input two shuzi:" A B #read格式,输入变量时,read后要加空格,A,B才能相应的接收到值
SUM=$[$A+$B]
echo "The plus two shuzi is $SUM"
本文共 212 字,大约阅读时间需要 1 分钟。
加法器
#!/bin/bash
#
#echo -n "something" #-n,为不换行
read -p "Please Input two shuzi:" A B #read格式,输入变量时,read后要加空格,A,B才能相应的接收到值
SUM=$[$A+$B]
echo "The plus two shuzi is $SUM"
转载于:https://blog.51cto.com/lingsan/1428459