就是
#!/bin/bash
# Program:
# User can input 2 integer to cross by
#History:
#2008/11/12 yzq8951
PATH=/bin:/sbin:/usr/sbin:/usr/local/bin:/use/local/sbin:/~/bin
export PATH
echo -e "You should input 2 numbers ,I will cross they"
read -p "first number:" firstnu
read -p "second number:" secnu
declare -i total=$firstnu*$secnu
echo -e "\nThe number $firstnu * $secnu is ==> $total"
declare -i total=$firstnu*$secnu和total=$(($firstnu*$secnu ))是等价的 我对这个$()不太懂
为什么这两个等价
- bones7456
- 帖子: 8495
- 注册时间: 2006-04-12 20:05
- 来自: 杭州
- 联系:
- xiooli
- 帖子: 6956
- 注册时间: 2007-11-19 21:51
- 来自: 成都
- 联系:
Re: 为什么这两个等价
(())里面的和c语言语法相同。